setting zsh shell

This commit is contained in:
John Lancaster
2026-04-26 19:03:44 -05:00
parent bfc5da791a
commit 7f4fdcf4b9
+15 -6
View File
@@ -14,20 +14,27 @@
inputs.home-manager.nixosModules.home-manager
];
environment.shells = [
"${lib.getExe pkgs.zsh}"
"${lib.getExe inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.jsl-zsh}"
];
users.groups."${username}" = {};
users.users."${username}" = {
isNormalUser = true;
group = username;
home = "/home/${username}";
shell = lib.mkIf config.programs.zsh.enable pkgs.zsh;
shell = pkgs.zsh;
extraGroups = [ "input" "networkmanager" ]
++ lib.optional isAdmin "wheel"
++ lib.optional config.virtualisation.docker.enable "docker"
++ lib.optional (isAdmin && config.services.forgejo.enable) config.services.forgejo.group
++ lib.optional (isAdmin && config.services.postgresql.enable) "postgres";
++ lib.optional isAdmin "wheel"
++ lib.optional config.virtualisation.docker.enable "docker"
++ lib.optional (isAdmin && config.services.forgejo.enable) config.services.forgejo.group
++ lib.optional (isAdmin && config.services.postgresql.enable) "postgres";
};
programs.zsh.enable = true;
security.sudo-rs.enable = lib.mkIf isAdmin true;
home-manager.useGlobalPkgs = true;
@@ -36,7 +43,9 @@
imports = [ self.modules.homeManager."${username}" ];
home.username = "${username}";
home.homeDirectory = "/home/${username}";
# home.packages = homePackages;
home.packages = with pkgs; [
# fzf zoxide starship
];
};
};
};