mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
refactor: split "real" modules and "config" modules
This commit is contained in:
parent
045f15239a
commit
cceae6c63c
60 changed files with 126 additions and 113 deletions
34
users/config/impermanence.nix
Normal file
34
users/config/impermanence.nix
Normal 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"
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue