chore: move some home folders to XDG spec compliant paths

This commit is contained in:
oddlama 2024-06-20 17:47:55 +02:00
parent c92aadf4cd
commit 40c030792d
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 6 additions and 1 deletions

View file

@ -10,6 +10,7 @@ in {
".ssh/known_hosts" ".ssh/known_hosts"
]; ];
home.sessionVariables.CUDA_CACHE_PATH = "\${HOME}/.cache/nv";
home.persistence."/state".directories = home.persistence."/state".directories =
[ [
".cache/fontconfig" ".cache/fontconfig"
@ -18,6 +19,7 @@ in {
] ]
++ optionals nixosConfig.hardware.nvidia.modesetting.enable [ ++ optionals nixosConfig.hardware.nvidia.modesetting.enable [
".cache/nvidia" # GLCache ".cache/nvidia" # GLCache
".cache/nv"
] ]
++ optionals nixosConfig.services.pipewire.enable [ ++ optionals nixosConfig.services.pipewire.enable [
".local/state/wireplumber" ".local/state/wireplumber"

View file

@ -6,8 +6,11 @@
]; ];
home = { home = {
sessionVariables.CARGO_HOME = "\${HOME}/.local/share/cargo";
sessionVariables.RUSTUP_HOME = "\${HOME}/.local/share/rustup";
persistence."/state".directories = [ persistence."/state".directories = [
".cargo" ".local/share/cargo"
".local/share/rustup"
]; ];
extraOutputsToInstall = ["man" "doc" "devdoc"]; extraOutputsToInstall = ["man" "doc" "devdoc"];