From 077b1f708374225e36b7f85f69cc2694daf7e7ec Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Sun, 14 Jul 2024 23:40:54 -0400 Subject: [PATCH] split shell config to file and make shell user default --- nixos/nixos.nix | 4 +--- nixos/shell.nix | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 nixos/shell.nix diff --git a/nixos/nixos.nix b/nixos/nixos.nix index b4398ca..ff472dd 100644 --- a/nixos/nixos.nix +++ b/nixos/nixos.nix @@ -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; [ diff --git a/nixos/shell.nix b/nixos/shell.nix new file mode 100644 index 0000000..a58fba0 --- /dev/null +++ b/nixos/shell.nix @@ -0,0 +1,6 @@ +{ pkgs, ... }: +{ + environment.shells = with pkgs; [ zsh ]; + programs.zsh.enable = true; + users.defaultUserShell = pkgs.zsh; +}