mirror of
https://github.com/ryantm/agenix.git
synced 2024-09-11 06:05:38 +03:00
Cleanup, improve readability
This commit is contained in:
parent
4532604741
commit
8867c12d72
@ -20,11 +20,9 @@ with lib; let
|
|||||||
users = config.users.users;
|
users = config.users.users;
|
||||||
|
|
||||||
mountCommand =
|
mountCommand =
|
||||||
if isDarwin
|
if isDarwin then ''
|
||||||
then ''
|
|
||||||
dev="$(hdiutil attach -nomount ram://1048576 | awk '{print $1}')"
|
|
||||||
newfs_hfs "$dev"
|
|
||||||
if ! diskutil info "${cfg.secretsMountPoint}" &> /dev/null; then
|
if ! diskutil info "${cfg.secretsMountPoint}" &> /dev/null; then
|
||||||
|
dev=$(hdiutil attach -nomount ram://1MiB)
|
||||||
mount -t hfs -o nobrowse,nodev,nosuid,-m=0751 "$dev" "${cfg.secretsMountPoint}"
|
mount -t hfs -o nobrowse,nodev,nosuid,-m=0751 "$dev" "${cfg.secretsMountPoint}"
|
||||||
fi
|
fi
|
||||||
''
|
''
|
||||||
|
Loading…
Reference in New Issue
Block a user