Clean up $HOME a little more
This commit is contained in:
parent
7c6069fb35
commit
7b90228590
|
@ -52,7 +52,7 @@
|
|||
XDG_BIN_HOME = "$HOME/.local/bin";
|
||||
};
|
||||
|
||||
# Conform more programs to XDG conventions. The rest are handle by their
|
||||
# Conform more programs to XDG conventions. The rest are handled by their
|
||||
# respective modules.
|
||||
my.env = {
|
||||
__GL_SHADER_DISK_CACHE_PATH = "$XDG_CACHE_HOME/nv";
|
||||
|
|
|
@ -114,7 +114,22 @@
|
|||
home.xdg.configFile = {
|
||||
"sxhkd".source = <my/config/sxhkd>;
|
||||
# link recursively so other modules can link files in their folders
|
||||
"bspwm" = { source = <my/config/bspwm>; recursive = true; };
|
||||
"bspwm" = {
|
||||
source = <my/config/bspwm>;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
|
||||
env.XAUTHORITY = "/tmp/Xauthority";
|
||||
init = ''
|
||||
[ -e ~/.Xauthority ] && mv -f ~/.Xauthority "$XAUTHORITY"
|
||||
'';
|
||||
};
|
||||
|
||||
system.activationScripts.clearHome = ''
|
||||
pushd /home/${config.my.username}
|
||||
rm -rf .compose-cache .nv .pki .dbus .fehbg
|
||||
[ -s .xsession-errors ] || rm -f .xsession-errors*
|
||||
popd
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue