From c2c5cdf50b2d3c6b67e53573f5448d0139fb8102 Mon Sep 17 00:00:00 2001 From: derped Date: Tue, 31 Dec 2024 15:29:22 +0100 Subject: [PATCH] Sheol: add impermanence user mounts --- machines/Sheol/impermanence.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/machines/Sheol/impermanence.nix b/machines/Sheol/impermanence.nix index d1324c0..871e44b 100644 --- a/machines/Sheol/impermanence.nix +++ b/machines/Sheol/impermanence.nix @@ -21,5 +21,21 @@ "/etc/ssh/ssh_host_rsa_key.pub" "/var/lib/sops-nix/key.txt" ]; + users.derped = { + directories = [ + ".local/state" + { + directory = ".gnupg"; + mode = "0700"; + } + { + directory = ".ssh"; + mode = "0700"; + } + ]; + }; }; + system.activationScripts.profile-init.text = '' + ln -sfn /home/derped/.local/state/nix/profiles/profile /home/derped/.nix-profile + ''; }