refactor: split "real" modules and "config" modules

This commit is contained in:
oddlama 2024-05-25 17:56:30 +02:00
parent 045f15239a
commit cceae6c63c
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
60 changed files with 126 additions and 113 deletions

View file

@ -0,0 +1,34 @@
{
config,
lib,
nixosConfig,
...
}: let
inherit (lib) optionals;
in {
home.persistence."/state".files = optionals config.programs.ssh.enable [
".ssh/known_hosts"
];
home.persistence."/state".directories =
[
".cache/fontconfig"
".cache/nix" # nix eval cache
".config/dconf" # some apps store their configuration using dconf
]
++ optionals nixosConfig.hardware.nvidia.modesetting.enable [
".cache/nvidia" # GLCache
]
++ optionals nixosConfig.services.pipewire.enable [
".local/state/wireplumber"
];
home.persistence."/persist".directories =
[
".local/share/nix" # Repl history
]
++ optionals nixosConfig.programs.steam.enable [
".local/share/Steam"
".steam"
];
}