From 014471e83a064b972366f08ffb636dcff3a1112c Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sat, 28 Mar 2026 00:19:40 -0500 Subject: [PATCH] fixed zsh shell enable on nixos user --- modules/hosts/john-p14s/configuration.nix | 1 + modules/nix-tools/user.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/hosts/john-p14s/configuration.nix b/modules/hosts/john-p14s/configuration.nix index 9bc0298..c6f7587 100644 --- a/modules/hosts/john-p14s/configuration.nix +++ b/modules/hosts/john-p14s/configuration.nix @@ -117,6 +117,7 @@ my-vscode.enable = true; mysops.hostSecretFile = "${flakeDir}/modules/hosts/john-p14s/secrets.yaml"; homeManagerFlakeDir = "${flakeDir}"; + shell.program = "zsh"; home.packages = with pkgs; [ bash discord diff --git a/modules/nix-tools/user.nix b/modules/nix-tools/user.nix index 15e614c..b25dc96 100644 --- a/modules/nix-tools/user.nix +++ b/modules/nix-tools/user.nix @@ -3,10 +3,11 @@ { self, ... }: { config.flake.factory.user = username: isAdmin: { - nixos."${username}" = { lib, pkgs, ... }: { + nixos."${username}" = { config, lib, pkgs, ... }: { users.users."${username}" = { isNormalUser = true; home = "/home/${username}"; + shell = lib.mkIf config.programs.zsh.enable pkgs.zsh; extraGroups = [ "input" "networkmanager"