moved keys
This commit is contained in:
@@ -22,7 +22,10 @@
|
||||
|
||||
# These will get applied to both the configured user and the root user (if enabled)
|
||||
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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user