1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

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

View file

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