diff --git a/nixos/modules/security/ipa.nix b/nixos/modules/security/ipa.nix index a1e7bd72b986..695de6e2d230 100644 --- a/nixos/modules/security/ipa.nix +++ b/nixos/modules/security/ipa.nix @@ -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; };