setting zsh shell

This commit is contained in:
John Lancaster
2026-04-26 19:03:44 -05:00
parent bfc5da791a
commit 7f4fdcf4b9
+11 -2
View File
@@ -14,13 +14,18 @@
inputs.home-manager.nixosModules.home-manager 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.groups."${username}" = {};
users.users."${username}" = { users.users."${username}" = {
isNormalUser = true; isNormalUser = true;
group = username; group = username;
home = "/home/${username}"; home = "/home/${username}";
shell = lib.mkIf config.programs.zsh.enable pkgs.zsh; shell = pkgs.zsh;
extraGroups = [ "input" "networkmanager" ] extraGroups = [ "input" "networkmanager" ]
++ lib.optional isAdmin "wheel" ++ lib.optional isAdmin "wheel"
++ lib.optional config.virtualisation.docker.enable "docker" ++ lib.optional config.virtualisation.docker.enable "docker"
@@ -28,6 +33,8 @@
++ lib.optional (isAdmin && config.services.postgresql.enable) "postgres"; ++ lib.optional (isAdmin && config.services.postgresql.enable) "postgres";
}; };
programs.zsh.enable = true;
security.sudo-rs.enable = lib.mkIf isAdmin true; security.sudo-rs.enable = lib.mkIf isAdmin true;
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
@@ -36,7 +43,9 @@
imports = [ self.modules.homeManager."${username}" ]; imports = [ self.modules.homeManager."${username}" ];
home.username = "${username}"; home.username = "${username}";
home.homeDirectory = "/home/${username}"; home.homeDirectory = "/home/${username}";
# home.packages = homePackages; home.packages = with pkgs; [
# fzf zoxide starship
];
}; };
}; };
}; };