setting zsh shell
This commit is contained in:
@@ -14,20 +14,27 @@
|
|||||||
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"
|
||||||
++ lib.optional (isAdmin && config.services.forgejo.enable) config.services.forgejo.group
|
++ lib.optional (isAdmin && config.services.forgejo.enable) config.services.forgejo.group
|
||||||
++ 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
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user