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

@@ -15,7 +15,6 @@
isNormalUser = true;
description = "Fredrik Robertsen";
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.nushell;
};
nixpkgs.config.allowUnfree = true;
@@ -23,20 +22,9 @@
environment = {
systemPackages = with pkgs; [ vim ripgrep xdg-utils ];
shells = with pkgs; [ nushell bash ];
shells = with pkgs; [ bash ];
};
programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
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
'';
services.openssh.enable = true;
services.gnome.gnome-keyring.enable = true;
hardware.bluetooth.enable = true;
programs.nix-ld.enable = true;

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;
}