preserve the fish history
This commit is contained in:
parent
17f4f7fd08
commit
1733da5166
3 changed files with 10 additions and 7 deletions
|
@ -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 [
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
{...}: {
|
||||
programs.fish.enable = true;
|
||||
home.persistence.default.files = [
|
||||
".local/share/fish/fish_history"
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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"];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue