2023-09-02 17:30:09 +02:00
|
|
|
userName: {
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
environment.persistence."/state" = {
|
|
|
|
users.${userName} = let
|
|
|
|
hmConfig = config.home-manager.users.${userName};
|
|
|
|
in {
|
2023-09-04 01:14:33 +02:00
|
|
|
files = with lib.lists;
|
|
|
|
[
|
|
|
|
".ssh/known_hosts"
|
|
|
|
]
|
|
|
|
++ optionals hmConfig.programs.rofi.enable [
|
|
|
|
".cache/rofi-3.runcache"
|
|
|
|
];
|
2023-09-02 17:30:09 +02:00
|
|
|
directories = with lib.lists;
|
|
|
|
[]
|
|
|
|
++
|
|
|
|
# firefox cannot be a symlink as home manager refuses put files outside your $HOME
|
|
|
|
optionals hmConfig.programs.firefox.enable [
|
|
|
|
".mozilla"
|
|
|
|
]
|
|
|
|
++ optionals hmConfig.programs.atuin.enable [
|
|
|
|
".local/share/atuin"
|
|
|
|
]
|
|
|
|
++ optionals hmConfig.programs.direnv.enable [
|
|
|
|
".local/share/direnv"
|
|
|
|
]
|
|
|
|
++ optionals hmConfig.programs.neovim.enable [
|
|
|
|
".local/share/nvim"
|
|
|
|
".local/state/nvim"
|
|
|
|
".cache/nvim"
|
|
|
|
]
|
|
|
|
# root should never use interactive programs
|
|
|
|
++ optionals config.services.pipewire.enable [
|
|
|
|
# persist sound config
|
|
|
|
".local/state/wireplumber"
|
|
|
|
]
|
|
|
|
# Folders for steam
|
|
|
|
++ optionals config.programs.steam.enable
|
|
|
|
[
|
|
|
|
".local/share/Steam"
|
|
|
|
".steam"
|
2023-09-04 01:14:33 +02:00
|
|
|
# Ken follets pillars of earth
|
2023-09-02 17:30:09 +02:00
|
|
|
".local/share//Daedalic Entertainment GmbH/"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|