fix xdg base dirs
This commit is contained in:
parent
92c568883a
commit
c68aac2cfc
1 changed files with 21 additions and 5 deletions
|
@ -4,8 +4,25 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (config.poz.other.system) username;
|
inherit (config.poz.other.system) username;
|
||||||
hmCfg = config.home-manager.users.${username};
|
hmCfg = config.home-manager.users.${username};
|
||||||
|
|
||||||
|
# https://specifications.freedesktop.org/basedir-spec/latest/
|
||||||
|
XDG_CACHE_HOME = "$HOME/.cache";
|
||||||
|
XDG_CONFIG_DIRS = "/etc/xdg";
|
||||||
|
XDG_CONFIG_HOME = "$HOME/.config";
|
||||||
|
XDG_DATA_DIRS = "/usr/local/share/:/usr/share/";
|
||||||
|
XDG_DATA_HOME = "$HOME/.local/share";
|
||||||
|
XDG_STATE_HOME = "$HOME/.local/state";
|
||||||
in {
|
in {
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
|
inherit
|
||||||
|
XDG_CACHE_HOME
|
||||||
|
XDG_CONFIG_DIRS
|
||||||
|
XDG_CONFIG_HOME
|
||||||
|
XDG_DATA_DIRS
|
||||||
|
XDG_DATA_HOME
|
||||||
|
XDG_STATE_HOME
|
||||||
|
;
|
||||||
|
|
||||||
ANDROID_HOME = "${hmCfg.xdg.dataHome}/android";
|
ANDROID_HOME = "${hmCfg.xdg.dataHome}/android";
|
||||||
CARGO_HOME = "${hmCfg.xdg.dataHome}/cargo";
|
CARGO_HOME = "${hmCfg.xdg.dataHome}/cargo";
|
||||||
DOTNET_CLI_HOME = "${hmCfg.xdg.dataHome}/dotnet";
|
DOTNET_CLI_HOME = "${hmCfg.xdg.dataHome}/dotnet";
|
||||||
|
@ -22,7 +39,6 @@ in {
|
||||||
RUSTUP_HOME = "${hmCfg.xdg.dataHome}/rustup";
|
RUSTUP_HOME = "${hmCfg.xdg.dataHome}/rustup";
|
||||||
WINEPREFIX = "${hmCfg.xdg.dataHome}/wine";
|
WINEPREFIX = "${hmCfg.xdg.dataHome}/wine";
|
||||||
XAUTHORITY = "\$XDG_RUNTIME_DIR/Xauthority";
|
XAUTHORITY = "\$XDG_RUNTIME_DIR/Xauthority";
|
||||||
XDG_CACHE_HOME = hmCfg.xdg.cacheHome;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
poz.programs.zsh.extraAliases = {
|
poz.programs.zsh.extraAliases = {
|
||||||
|
@ -63,10 +79,10 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
cacheHome = "${hmCfg.home.homeDirectory}/.cache";
|
cacheHome = XDG_CACHE_HOME;
|
||||||
configHome = "${hmCfg.home.homeDirectory}/.config";
|
configHome = XDG_CONFIG_HOME;
|
||||||
dataHome = "${hmCfg.home.homeDirectory}/.local/share";
|
dataHome = XDG_DATA_HOME;
|
||||||
stateHome = "${hmCfg.home.homeDirectory}/.local/state";
|
stateHome = XDG_STATE_HOME;
|
||||||
mimeApps = {
|
mimeApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultApplications = let
|
defaultApplications = let
|
||||||
|
|
Loading…
Reference in a new issue