From b82e97466a058da177b89eebaf490beb3744e9d6 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Sun, 19 Feb 2023 06:08:51 +0100 Subject: [PATCH] Followed NixOS wiki to set ZSH as default shell --- lib/host.nix | 5 +++-- lib/user.nix | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/host.nix b/lib/host.nix index 8982403..7701eb8 100644 --- a/lib/host.nix +++ b/lib/host.nix @@ -46,8 +46,6 @@ }; }; - users.users.root = { shell = pkgs.zsh; }; - home-manager = { users.root.imports = pkgs.lib.singleton (mkHomeRole "common"); extraSpecialArgs.unstablePkgs = unstablePkgs; @@ -55,6 +53,9 @@ }; system.stateVersion = "22.11"; + + environment.shells = [ pkgs.zsh ]; + users.defaultUserShell = pkgs.zsh; } home-manager.nixosModules.home-manager diff --git a/lib/user.nix b/lib/user.nix index c1e2177..5d4f62f 100644 --- a/lib/user.nix +++ b/lib/user.nix @@ -16,7 +16,6 @@ users.users.${name} = { isNormalUser = true; - shell = pkgs.zsh; extraGroups = [ "wheel" "plugdev" ]; };