diff --git a/modules/age.nix b/modules/age.nix index 88489ca..422346e 100644 --- a/modules/age.nix +++ b/modules/age.nix @@ -20,11 +20,9 @@ with lib; let users = config.users.users; mountCommand = - if isDarwin - then '' - dev="$(hdiutil attach -nomount ram://1048576 | awk '{print $1}')" - newfs_hfs "$dev" + if isDarwin 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}" fi ''