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
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:
parent
68cc48faca
commit
7b2bae742d
1 changed files with 6 additions and 4 deletions
|
@ -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"];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue