From 7b2bae742ddb632337080bbd1591d770cec0f14e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 3 Nov 2024 09:29:45 +0100 Subject: [PATCH] use user level persistence --- users/root/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/users/root/default.nix b/users/root/default.nix index 96bd317b..3e3292da 100644 --- a/users/root/default.nix +++ b/users/root/default.nix @@ -10,10 +10,12 @@ neededForUsers = true; sopsFile = ./password.yaml; }; - environment.persistence."/persistent" = { - directories = ["/root/.cache/nix"]; # for sanity - files = ["/root/.bash_history"]; + home-manager.users.root = {config, ...}: { + home.persistence."/persistent${config.home.username}" = { + files = [ + ".bash_history" + ]; + }; }; - home-manager.users.root = {}; environment.impermanence.users = ["root"]; }