moved keys

This commit is contained in:
John Lancaster
2025-07-06 23:07:54 -05:00
parent 09e941abbd
commit 2fd6a2c04a
4 changed files with 4 additions and 2 deletions

View File

@@ -76,7 +76,6 @@ nhmu
enableShell = true; enableShell = true;
_1password = true; _1password = true;
docker = true; docker = true;
# graphical = true;
graphical = { graphical = {
steam = true; steam = true;
vscode = true; vscode = true;

View File

@@ -22,7 +22,10 @@
# These will get applied to both the configured user and the root user (if enabled) # These will get applied to both the configured user and the root user (if enabled)
userOptions = config: { userOptions = config: {
openssh.authorizedKeys.keyFiles = lib.optionals config.ssh [ ./personal_keys ]; openssh.authorizedKeys = lib.mkIf config.ssh (lib.mkMerge [
(lib.mkIf (config.profile == "personal") { keyFiles = [ ./personal ]; })
(lib.mkIf (config.profile == "work") { keyFiles = [ ./work ]; })
]);
shell = lib.mkIf config.enableShell pkgs.zsh; shell = lib.mkIf config.enableShell pkgs.zsh;
}; };