From 58d5e6b58f72997fa24fc36284da23fb257ee3cd Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 17 May 2024 09:38:40 +0100 Subject: [PATCH] persistance working --- hosts/common/users/sam/default.nix | 19 ++++++++++++++++++- hosts/media/default.nix | 17 ----------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/hosts/common/users/sam/default.nix b/hosts/common/users/sam/default.nix index 6b0436c..5030f0b 100644 --- a/hosts/common/users/sam/default.nix +++ b/hosts/common/users/sam/default.nix @@ -22,7 +22,24 @@ in programs.zsh.enable = true; - #home-manager.users.sam = + fileSystems."/persist".neededForBoot = true; + environment.persistence."/persist" = { + hideMounts = true; + directories = [ + "/etc/nixos" + "/var/log" + "/var/lib/nixos" + "/var/lib/systemd/coredump" + "/etc/NetworkManager/system-connections" + ]; + users.media = { + directories = [ + "keep" + ".ssh" + ]; + }; + }; + home-manager = { extraSpecialArgs = { inherit inputs; }; users = { diff --git a/hosts/media/default.nix b/hosts/media/default.nix index e17f8d4..30f6588 100644 --- a/hosts/media/default.nix +++ b/hosts/media/default.nix @@ -18,23 +18,6 @@ ]; - fileSystems."/persist".neededForBoot = true; - environment.persistence."/persist" = { - hideMounts = true; - directories = [ - "/etc/nixos" - "/var/log" - "/var/lib/nixos" - "/var/lib/systemd/coredump" - "/etc/NetworkManager/system-connections" - ]; - users.media = { - directories = [ - ".ssh" - ]; - }; - }; - nixpkgs = { overlays = [ outputs.overlays.additions