From a369c2adb0b15024d984bb33d01981019f316766 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 23 May 2024 16:57:41 +0100 Subject: [PATCH] persistance to user --- hosts/common/users/media/default.nix | 16 ++++++++++++++++ hosts/sparky/default.nix | 12 ------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/hosts/common/users/media/default.nix b/hosts/common/users/media/default.nix index 6635da0..1350225 100644 --- a/hosts/common/users/media/default.nix +++ b/hosts/common/users/media/default.nix @@ -20,6 +20,22 @@ in }; + environment.persistence."/persist" = { + hideMounts = true; + users.media= { + directories = [ + "sync" + "keep" + ".ssh" + ".config/dconf" + ".config/cinnamon" + ".config/nemo" + ]; + files = [ + ]; + }; + }; + sops.secrets."passwords/media" = { sopsFile = "${secretsFile}"; neededForUsers = true; diff --git a/hosts/sparky/default.nix b/hosts/sparky/default.nix index 036893e..5a0dc63 100644 --- a/hosts/sparky/default.nix +++ b/hosts/sparky/default.nix @@ -50,18 +50,6 @@ in "/etc/ssh/ssh_host_ed25519_key" "/etc/ssh/ssh_host_ed25519_key.pub" ]; - users.media= { - directories = [ - "sync" - "keep" - ".ssh" - ".config/dconf" - ".config/cinnamon" - ".config/nemo" - ]; - files = [ - ]; - }; }; users = {