From 12229e57b6f28bc4823faf1fcf1a04b2aaafef95 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 17 May 2024 09:15:46 +0100 Subject: [PATCH] move persist to nixos system --- home/users/media/default.nix | 8 -------- hosts/media/default.nix | 6 +++++- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/home/users/media/default.nix b/home/users/media/default.nix index 0cf0ee6..ae40986 100644 --- a/home/users/media/default.nix +++ b/home/users/media/default.nix @@ -32,14 +32,6 @@ export TERM=xterm ''; }; - - home.persistence."/persist/home" = { - directories = [ - ".gnupg" - ".ssh" - ]; - allowOther = true; - }; home.file = { }; diff --git a/hosts/media/default.nix b/hosts/media/default.nix index fac5f3d..d2d129b 100644 --- a/hosts/media/default.nix +++ b/hosts/media/default.nix @@ -19,7 +19,7 @@ ]; fileSystems."/persist".neededForBoot = true; - environment.persistence."/persist/system" = { + environment.persistence."/persist" = { hideMounts = true; directories = [ "/etc/nixos" @@ -28,6 +28,10 @@ "/var/lib/systemd/coredump" "/etc/NetworkManager/system-connections" ]; + users.talyz = { + directories = [ + ".ssh" + ]; }; nixpkgs = {