gaming: new machine

also move a lot of dev stuff into dev module from base
This commit is contained in:
2026-04-05 18:26:54 +02:00
parent 1bba5e22ba
commit c91daf270f
5 changed files with 87 additions and 14 deletions

View File

@@ -35,5 +35,22 @@
];
environment.sessionVariables.EDITOR = "hx";
environment.shells = with pkgs; [ nushell bash ];
users.users.fredrikr.shell = pkgs.nushell;
programs.bash.interactiveShellInit = ''
if [ "$TERM" = "dumb" ]; then exec ${pkgs.bash}; fi
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "nu" && -z ''${BASH_EXECUTION_STRING} ]]; then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
exec ${pkgs.nushell}/bin/nu $LOGIN_OPTION
fi
'';
programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
services.openssh.enable = true;
services.gnome.gnome-keyring.enable = true;
}