Clean up $HOME a little more

This commit is contained in:
Henrik Lissner 2020-01-14 08:25:40 -05:00
parent 7c6069fb35
commit 7b90228590
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 17 additions and 2 deletions

View file

@ -52,7 +52,7 @@
XDG_BIN_HOME = "$HOME/.local/bin"; 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. # respective modules.
my.env = { my.env = {
__GL_SHADER_DISK_CACHE_PATH = "$XDG_CACHE_HOME/nv"; __GL_SHADER_DISK_CACHE_PATH = "$XDG_CACHE_HOME/nv";

View file

@ -114,7 +114,22 @@
home.xdg.configFile = { home.xdg.configFile = {
"sxhkd".source = <my/config/sxhkd>; "sxhkd".source = <my/config/sxhkd>;
# link recursively so other modules can link files in their folders # 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
'';
} }