home/xdg: move some envvars to their respective modules

This commit is contained in:
2025-04-25 16:02:28 +02:00
parent e465db8888
commit 48ea97af39
3 changed files with 7 additions and 5 deletions

@ -11,11 +11,9 @@
TEXMFCONFIG = "${configHome}/texlive"; TEXMFCONFIG = "${configHome}/texlive";
PSQL_HISTORY = "${dataHome}/psql_history"; PSQL_HISTORY = "${dataHome}/psql_history";
SQLITE_HISTORY= "${dataHome}/sqlite_history";
MYSQL_HISTFILE = "${dataHome}/mysql_history"; MYSQL_HISTFILE = "${dataHome}/mysql_history";
NODE_REPL_HISTORY = "${dataHome}/node_repl_history"; NODE_REPL_HISTORY = "${dataHome}/node_repl_history";
GDB_HISTFILE = "${dataHome}/gdb_history"; GDB_HISTFILE = "${dataHome}/gdb_history";
PYTHON_HISTORY = "${dataHome}/python_history";
HISTFILE = "${dataHome}/bash_history"; HISTFILE = "${dataHome}/bash_history";
GHCUP_USE_XDG_DIRS = "true"; GHCUP_USE_XDG_DIRS = "true";
@ -27,7 +25,6 @@
BZRPATH = "${configHome}/bazaar"; BZRPATH = "${configHome}/bazaar";
BZR_PLUGIN_PATH = "${dataHome}/bazaar"; BZR_PLUGIN_PATH = "${dataHome}/bazaar";
BZR_HOME = "${cacheHome}/bazaar"; BZR_HOME = "${cacheHome}/bazaar";
CARGO_HOME = "${dataHome}/cargo";
CUDA_CACHE_PATH = "${cacheHome}/nv"; CUDA_CACHE_PATH = "${cacheHome}/nv";
DOCKER_CONFIG = "${configHome}/docker"; DOCKER_CONFIG = "${configHome}/docker";
DOTNET_CLI_HOME = "${dataHome}/dotnet"; DOTNET_CLI_HOME = "${dataHome}/dotnet";

@ -17,5 +17,8 @@
sys.ps2='\x01\x1b[1;49;31m\x02...\x01\x1b[0m\x02 ' # bright red sys.ps2='\x01\x1b[1;49;31m\x02...\x01\x1b[0m\x02 ' # bright red
''; '';
home.sessionVariables.PYTHONSTARTUP = "${config.xdg.configHome}/python/pyrc"; home.sessionVariables = {
PYTHONSTARTUP = "${config.xdg.configHome}/python/pyrc";
PYTHON_HISTORY = "${config.xdg.dataHome}/python_history";
};
} }

@ -1,4 +1,4 @@
{ pkgs, ... }: { config, pkgs, ... }:
{ {
xdg.configFile."sqlite3/sqliterc".text = '' xdg.configFile."sqlite3/sqliterc".text = ''
.bail on .bail on
@ -12,4 +12,6 @@
home.packages = [ home.packages = [
pkgs.sqlite-interactive pkgs.sqlite-interactive
]; ];
home.sessionVariables.SQLITE_HISTORY= "${config.xdg.dataHome}/sqlite_history";
} }