From 8867c12d72c9f5d77248877a56f62078036101d6 Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Mon, 30 Jan 2023 09:06:39 -0700 Subject: [PATCH] Cleanup, improve readability --- modules/age.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 ''