reenabled xdg, appareantly it does work

This commit is contained in:
Charlie Root 2024-04-12 15:37:27 +02:00
commit 5a9c134717
3 changed files with 4 additions and 6 deletions

View file

@ -2,6 +2,6 @@ _: {
imports = [ imports = [
./home-manager.nix ./home-manager.nix
./system.nix ./system.nix
# ./xdg.nix ./xdg.nix
]; ];
} }

View file

@ -14,7 +14,7 @@
text_editor = "nvim.desktop"; text_editor = "nvim.desktop";
in { in {
environment.sessionVariables = { /* environment.sessionVariables = {
CARGO_HOME = "${hmCfg.xdg.dataHome}/cargo"; CARGO_HOME = "${hmCfg.xdg.dataHome}/cargo";
GOPATH = "${hmCfg.xdg.dataHome}/go"; GOPATH = "${hmCfg.xdg.dataHome}/go";
GNUPGHOME = "${hmCfg.xdg.dataHome}/gnupg"; GNUPGHOME = "${hmCfg.xdg.dataHome}/gnupg";
@ -30,14 +30,13 @@ in {
WINEPREFIX = "${hmCfg.xdg.dataHome}/wine"; WINEPREFIX = "${hmCfg.xdg.dataHome}/wine";
XAUTHORITY = "\$XDG_RUNTIME_DIR/Xauthority"; XAUTHORITY = "\$XDG_RUNTIME_DIR/Xauthority";
}; };
*/
myOptions.programs.zsh.extraAliases = { myOptions.programs.zsh.extraAliases = {
gdb = "gdb -n -x ${hmCfg.xdg.configHome}/gdb/init"; gdb = "gdb -n -x ${hmCfg.xdg.configHome}/gdb/init";
pidgin = "pidgin --config=${hmCfg.xdg.dataHome}/purple"; pidgin = "pidgin --config=${hmCfg.xdg.dataHome}/purple";
svn = "svn --config-dir ${hmCfg.xdg.configHome}/subversion"; svn = "svn --config-dir ${hmCfg.xdg.configHome}/subversion";
wget = "wget --hsts-file=\"${hmCfg.xdg.dataHome}/wget-hsts\""; wget = "wget --hsts-file=\"${hmCfg.xdg.dataHome}/wget-hsts\"";
}; };
home-manager.users.${username} = { home-manager.users.${username} = {
xdg.configFile."npm/npmrc".text = '' xdg.configFile."npm/npmrc".text = ''
prefix=${hmCfg.xdg.dataHome}/npm prefix=${hmCfg.xdg.dataHome}/npm

View file

@ -1,2 +1 @@
## Used Stuff # Used Stuff
I think it'd be nice to use flake-parts, they make our config more sane.