moved keys
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user