home: put more stuff in xdg directories

This commit is contained in:
Artemis Tosini 2024-02-09 22:47:27 +00:00
parent d9ef18aaab
commit 613cb83d90
Signed by: artemist
SSH key fingerprint: SHA256:EsuWCwx6fjxxExxf65rX+ocQJJAdw4R1KarpFue6Uwc
4 changed files with 35 additions and 13 deletions

View file

@ -7,15 +7,16 @@
}; };
home-manager.users.artemis = { home-manager.users.artemis = {
imports = [ imports = [
./fish.nix
./gtk.nix
./git.nix
./mpv.nix
./terminals.nix
./ssh
./tmux.nix
./gpg.nix
./dirs.nix ./dirs.nix
./fish.nix
./git.nix
./gpg.nix
./gtk.nix
./mpv.nix
./ssh
./terminals.nix
./tmux.nix
./use-xdg.nix
]; ];
home.stateVersion = config.system.stateVersion; home.stateVersion = config.system.stateVersion;
@ -28,6 +29,7 @@
enable = true; enable = true;
nix-direnv.enable = true; nix-direnv.enable = true;
}; };
programs.password-store.enable = true;
xdg.enable = true; xdg.enable = true;
xdg.configFile = { xdg.configFile = {
@ -37,6 +39,9 @@
show-failed-attempts show-failed-attempts
image=${./files/xp.jpg} image=${./files/xp.jpg}
''; '';
"gdb/gdbinit".text = ''
set disassembly-flavor intel
'';
}; };
}; };
} }

View file

@ -1,11 +1,12 @@
{ ... }: { config, ... }: {
{
services.gpg-agent = { services.gpg-agent = {
enable = true; enable = true;
enableExtraSocket = true; enableExtraSocket = true;
pinentryFlavor = "gnome3"; pinentryFlavor = "gnome3";
}; };
programs.gpg.enable = true; programs.gpg = {
enable = true;
homedir = "${config.xdg.dataHome}/gnupg";
};
} }

View file

@ -90,7 +90,7 @@ in {
} // (numberedColors "color" "#" 0 colors.normal) } // (numberedColors "color" "#" 0 colors.normal)
// (numberedColors "color" "#" 8 colors.bright); // (numberedColors "color" "#" 8 colors.bright);
extraConfig = '' extraConfig = ''
symbol_map U+e000-U+f8ff Symbols Nerd Font Mono symbol_map U+e000-U+f8ff,U+f0000-U+f2000 Symbols Nerd Font Mono
''; '';
}; };
} }

16
home/use-xdg.nix Normal file
View file

@ -0,0 +1,16 @@
{ config, ... }: {
home.sessionVariables = {
ANDROID_USER_HOME = "${config.xdg.dataHome}/android";
CARGO_HOME = "${config.xdg.dataHome}/cargo";
DOTNET_CLI_HOME = "${config.xdg.dataHome}/dotnet";
DVDCSS_CACHE = "${config.xdg.dataHome}/dvdcss";
GRADLE_USER_HOME = "${config.xdg.dataHome}/gradle";
IPYTHONDIR = "${config.xdg.configHome}/ipython";
JUPYTER_CONFIG_DIR = "${config.xdg.configHome}/jupyter";
LESSHISTFILE = "${config.xdg.stateHome}/less/history";
NUGET_PACKAGES = "${config.xdg.cacheHome}/nuget/packages";
PARALLEL_HOME = "${config.xdg.configHome}/parallel";
PLATFORMIO_CORE_DIR = "${config.xdg.dataHome}/platformio";
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
};
}