preserve the fish history
All checks were successful
Hydra nixosConfigurations.not522 Hydra build #23361 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.not522-installer Hydra build #23362 of nixos-config:pr618:nixosConfigurations.not522-installer

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-03 13:18:10 +01:00
parent 17f4f7fd08
commit 1733da5166
3 changed files with 10 additions and 7 deletions

View file

@ -14,6 +14,13 @@ with lib; {
};
config = mkIf config.environment.impermanence.enable {
home-manager.users = listToAttrs (map (name: {
inherit name;
value.home.persistence.default = {
persistentStoragePath = "/persistent/home/${name}";
};
})
config.environment.impermanence.users);
systemd.services = listToAttrs (flatten (map (name: let
cfg = config.users.users.${name};
in [

View file

@ -1,3 +1,6 @@
{...}: {
programs.fish.enable = true;
home.persistence.default.files = [
".local/share/fish/fish_history"
];
}

View file

@ -10,12 +10,5 @@
neededForUsers = true;
sopsFile = ./password.yaml;
};
home-manager.users.root = {config, ...}: {
home.persistence."/persistent/${config.home.username}" = {
files = [
".bash_history"
];
};
};
environment.impermanence.users = ["root"];
}