This commit is contained in:
John Lancaster
2025-07-03 21:50:32 -05:00
parent ae071e4794
commit f634eea3a7
3 changed files with 5 additions and 5 deletions

View File

@@ -19,7 +19,7 @@
userOptions = config: {
openssh.authorizedKeys.keyFiles = lib.optionals config.ssh [ ./personal_keys ];
extraGroups = lib.optionals config.root [ "wheel" ];
shell = lib.mkIf config.shell pkgs.zsh;
shell = lib.mkIf config.enableShell pkgs.zsh;
};
mkhomeManagerModules = config: [
@@ -27,7 +27,7 @@
user = config.user;
stateVersion = config.stateVersion;
profile = config.profile;
shell = config.shell;
shell = config.enableShell;
ssh = config.ssh;
_1password = config._1password;
}
@@ -74,7 +74,7 @@
extraConfig = "Defaults timestamp_timeout=1440";
};
programs.zsh.enable = lib.mkIf config.shell true;
programs.zsh.enable = lib.mkIf config.enableShell true;
home-manager = {
useUserPackages = true;

View File

@@ -6,7 +6,7 @@
echo "Hello from ~/.config/home-manager/home.nix!"
'')
];
programs.zsh = lib.mkIf config.shell {
programs.zsh = lib.mkIf config.enableShell {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;

View File

@@ -30,7 +30,7 @@
description = "Whether enable all the root user stuff";
};
options.shell = lib.mkOption {
options.enableShell = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Whether to enable all the zsh stuff";