refactor(hm/price): ensure as many dirs as possible use xdg specification
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m6s

This commit is contained in:
Price Hiller 2024-08-29 22:32:16 -05:00
parent b5a5bb1e96
commit 8149576db5
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
4 changed files with 22 additions and 9 deletions

View File

@ -11,6 +11,7 @@
"flakes" "flakes"
]; ];
auto-optimise-store = true; auto-optimise-store = true;
use-xdg-base-directories = true;
trusted-users = [ "@wheel" ]; trusted-users = [ "@wheel" ];
}; };
gc = { gc = {

View File

@ -1,8 +1,18 @@
{ ... }: { pkgs, ... }:
{ {
nix = { nix = {
package = pkgs.nix;
gc = { gc = {
automatic = true; automatic = true;
}; };
settings = {
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
use-xdg-base-directories = true;
trusted-users = [ "@wheel" ];
};
}; };
} }

View File

@ -1,4 +0,0 @@
extra-experimental-features = flakes nix-command
max-jobs = auto
substituters = https://cache.nixos.org https://cache.nixos.org/ https://nix-community.cachix.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=

View File

@ -154,14 +154,20 @@ in
CARGO_HOME = "${config.xdg.dataHome}/cargo"; CARGO_HOME = "${config.xdg.dataHome}/cargo";
OMNISHARPHOME = "${config.xdg.configHome}/omnisharp"; OMNISHARPHOME = "${config.xdg.configHome}/omnisharp";
NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc"; NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
TERMINFO_DIRS = "${config.home.homeDirectory}/.nix-profile/share/terminfo"; TERMINFO_DIRS = "${config.home.profileDirectory}/share/terminfo";
WSLENV = "TERMINFO_DIRS"; WSLENV = "TERMINFO_DIRS";
LD_LIBRARY_PATH = lib.strings.makeLibraryPath [ LD_LIBRARY_PATH = lib.strings.makeLibraryPath [
"${config.home.homeDirectory}/.nix-profile/" "${config.home.profileDirectory}"
"${pkgs.sqlite.out}" "${pkgs.sqlite.out}"
]; ];
PKG_CONFIG_PATH = "${config.home.homeDirectory}/.nix-profile/lib/pkgconfig"; PKG_CONFIG_PATH = "${config.home.profileDirectory}/lib/pkgconfig";
GTK_PATH = "${pkgs.gtk-engine-murrine}/lib/gtk-2.0"; GTK_PATH = "${pkgs.gtk-engine-murrine}/lib/gtk-2.0";
ANDROID_USER_HOME = "${config.xdg.dataHome}/android";
ANSIBLE_HOME = "${config.xdg.dataHome}/ansible";
CUDA_CACHE_PATH = "${config.xdg.cacheHome}/nv";
DOCKER_CONFIG = "${config.xdg.configHome}/docker";
GRADLE_USER_HOME = "${config.xdg.dataHome}/gradle";
_JAVA_OPTIONS = "-Djava.util.prefs.userRoot='${config.xdg.configHome}/java'";
}; };
sessionPath = [ "${config.xdg.dataHome}/bin" ]; sessionPath = [ "${config.xdg.dataHome}/bin" ];
}; };
@ -169,7 +175,7 @@ in
xdg = { xdg = {
enable = true; enable = true;
mime.enable = true; mime.enable = true;
systemDirs.data = [ "${config.home.homeDirectory}/.nix-profile/share/" ]; systemDirs.data = [ "${config.home.profileDirectory}/share/" ];
mimeApps = { mimeApps = {
enable = true; enable = true;
associations.added = { associations.added = {