WIP: nixos-anywhere for virtual machines

This commit is contained in:
Pim Kunis 2023-11-25 21:00:21 +01:00
parent cc809942ef
commit 0bf113fa25
16 changed files with 282 additions and 7 deletions

View file

@ -7,6 +7,14 @@ in {
options = {
custom = {
ssh = {
useCertificates = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Whether to use certificates at all.
'';
};
hostCert = lib.mkOption {
type = lib.types.str;
description = ''
@ -42,7 +50,7 @@ in {
};
};
config = {
config = lib.mkIf cfg.useCertificates {
services.openssh = {
extraConfig = ''
HostCertificate ${hostCert}

View file

@ -31,4 +31,3 @@
};
};
}