use user level persistence
All checks were successful
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #23336 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra checks.x86_64-linux.containers-default Hydra build #23333 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #23335 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #23334 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-03 09:29:45 +01:00
parent 68cc48faca
commit 7b2bae742d

View file

@ -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"];
}