gaming: new machine
also move a lot of dev stuff into dev module from base
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user