home: xdg: move 'gdb' variables to their module
All checks were successful
ci/woodpecker/push/check Pipeline was successful

This commit is contained in:
Bruno BELANYI 2024-03-11 18:13:41 +00:00
parent f06e99d95b
commit b24d299f70
2 changed files with 8 additions and 2 deletions

View file

@ -26,7 +26,14 @@ in
gdb gdb
]; ];
xdg.configFile."gdb/gdbinit".source = ./gdbinit; xdg = {
configFile."gdb/gdbinit".source = ./gdbinit;
dataFile. "gdb/.keep".text = "";
};
home.sessionVariables = {
GDBHISTFILE = "${config.xdg.dataHome}/gdb/gdb_history";
};
} }
(lib.mkIf cfg.rr.enable { (lib.mkIf cfg.rr.enable {

View file

@ -42,7 +42,6 @@ in
ANDROID_USER_HOME = "${configHome}/android"; ANDROID_USER_HOME = "${configHome}/android";
CARGO_HOME = "${dataHome}/cargo"; CARGO_HOME = "${dataHome}/cargo";
DOCKER_CONFIG = "${configHome}/docker"; DOCKER_CONFIG = "${configHome}/docker";
GDBHISTFILE = "${dataHome}/gdb/gdb_history";
GRADLE_USER_HOME = "${dataHome}/gradle"; GRADLE_USER_HOME = "${dataHome}/gradle";
HISTFILE = "${dataHome}/bash/history"; HISTFILE = "${dataHome}/bash/history";
INPUTRC = "${configHome}/readline/inputrc"; INPUTRC = "${configHome}/readline/inputrc";