fixup! profiles: init (vsock ssh &c.)

This commit is contained in:
Else, Someone 2025-10-09 04:30:07 +03:00
parent 93d7267aa9
commit ac6e423d94

View file

@ -18,7 +18,7 @@ in
uvms.users.pubkeys.ssh = lib.mkOption { uvms.users.pubkeys.ssh = lib.mkOption {
description = "Authorized SSH keys for user@ and root@"; description = "Authorized SSH keys for user@ and root@";
type = lib.types.listOf lib.types.str; type = lib.types.listOf lib.types.str;
defalut = [ ]; default = [ ];
}; };
uvms.users.pubkeys.enable = uvms.users.pubkeys.enable =
lib.mkEnableOption "Deploy (SSH, &c) public (authorized) keys. This leaks certain public IDs into the VM" lib.mkEnableOption "Deploy (SSH, &c) public (authorized) keys. This leaks certain public IDs into the VM"
@ -49,7 +49,7 @@ in
}; };
}; };
} }
(lib.mkIf cfg.deployPubkeys { (lib.mkIf cfg.pubkeys.enable {
users.users.root.openssh = { inherit authorizedKeys; }; users.users.root.openssh = { inherit authorizedKeys; };
users.users.user.openssh = { inherit authorizedKeys; }; users.users.user.openssh = { inherit authorizedKeys; };
}) })