split shell config to file and make shell user default

This commit is contained in:
Benjamin Palko 2024-07-14 23:40:54 -04:00
parent 653ef5b48b
commit 077b1f7083
2 changed files with 7 additions and 3 deletions

View file

@ -16,14 +16,12 @@ in
./nvidia.nix
./audio.nix
./services.nix
./shell.nix
./hyprland.nix
];
environment.shells = with pkgs; [ zsh ];
programs.zsh.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.${username} = {
shell = pkgs.zsh;
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [

6
nixos/shell.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs, ... }:
{
environment.shells = with pkgs; [ zsh ];
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
}