nixos/ipa: add timeserver enable option

This commit is contained in:
Marcel
2025-11-14 23:29:40 +01:00
parent 5eecbe3b20
commit 5ffe57b89f

View File

@@ -84,6 +84,12 @@ in
description = "Whether to cache credentials.";
};
useAsTimeserver = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Whether to add the IPA server to the timeserver.";
};
ipaHostname = lib.mkOption {
type = lib.types.str;
example = "myworkstation.example.com";
@@ -287,7 +293,7 @@ in
};
};
networking.timeServers = lib.singleton cfg.server;
networking.timeServers = lib.optional cfg.useAsTimeserver cfg.server;
security.pki.certificateFiles = lib.singleton cfg.certificate;
};