From 2eb5762de31a9c12d2cb676904ae5a88595203f6 Mon Sep 17 00:00:00 2001 From: derped Date: Tue, 31 Dec 2024 16:00:54 +0100 Subject: [PATCH] Sheol: use service impermanence definition --- machines/Sheol/impermanence.nix | 41 --------------------------------- machines/Sheol/options.nix | 1 + 2 files changed, 1 insertion(+), 41 deletions(-) delete mode 100644 machines/Sheol/impermanence.nix diff --git a/machines/Sheol/impermanence.nix b/machines/Sheol/impermanence.nix deleted file mode 100644 index 871e44b..0000000 --- a/machines/Sheol/impermanence.nix +++ /dev/null @@ -1,41 +0,0 @@ -{ impermanence, ... }: -{ - imports = [ - impermanence.nixosModules.impermanence - ]; - environment.persistence."/persist" = { - hideMounts = true; - directories = [ - "/etc/nixos" - # Stores auto assigned user/group ids - "/var/lib/nixos" - "/var/log" - # User directories - "/home/derped/.config/home-manager" - ]; - files = [ - "/etc/machine-id" - "/etc/ssh/ssh_host_ed25519_key" - "/etc/ssh/ssh_host_ed25519_key.pub" - "/etc/ssh/ssh_host_rsa_key" - "/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 - ''; -} diff --git a/machines/Sheol/options.nix b/machines/Sheol/options.nix index 7365eff..7d739b2 100644 --- a/machines/Sheol/options.nix +++ b/machines/Sheol/options.nix @@ -27,6 +27,7 @@ services = [ "desktop" "desktop::sway" + "impermanence" "mullvad" "openssh" "pipewire"