fixed zsh shell enable on nixos user

This commit is contained in:
John Lancaster
2026-03-28 00:19:40 -05:00
parent 778276faa9
commit 014471e83a
2 changed files with 3 additions and 1 deletions
@@ -117,6 +117,7 @@
my-vscode.enable = true; my-vscode.enable = true;
mysops.hostSecretFile = "${flakeDir}/modules/hosts/john-p14s/secrets.yaml"; mysops.hostSecretFile = "${flakeDir}/modules/hosts/john-p14s/secrets.yaml";
homeManagerFlakeDir = "${flakeDir}"; homeManagerFlakeDir = "${flakeDir}";
shell.program = "zsh";
home.packages = with pkgs; [ home.packages = with pkgs; [
bash bash
discord discord
+2 -1
View File
@@ -3,10 +3,11 @@
{ self, ... }: { self, ... }:
{ {
config.flake.factory.user = username: isAdmin: { config.flake.factory.user = username: isAdmin: {
nixos."${username}" = { lib, pkgs, ... }: { nixos."${username}" = { config, lib, pkgs, ... }: {
users.users."${username}" = { users.users."${username}" = {
isNormalUser = true; isNormalUser = true;
home = "/home/${username}"; home = "/home/${username}";
shell = lib.mkIf config.programs.zsh.enable pkgs.zsh;
extraGroups = [ extraGroups = [
"input" "input"
"networkmanager" "networkmanager"