feat: auto import modules and simplify configs

This commit is contained in:
2026-03-07 15:59:07 +01:00
parent f9706b2958
commit 78dd75ec88
7 changed files with 40 additions and 84 deletions

View File

@@ -2,16 +2,10 @@
pkgs,
lib,
inputs,
userKeys,
...
}:
let
keys = import ../../users/matej/keys.nix;
in
{
imports = [
inputs.self.nixosModules.openssh
];
openssh.enable = true;
image.modules.iso-installer = {
@@ -41,7 +35,7 @@ in
"wheel"
"users"
];
openssh.authorizedKeys.keys = keys.sshAuthorizedKeys;
openssh.authorizedKeys.keys = userKeys.sshAuthorizedKeys or [ ];
};
};