Unverified Commit 5ffe57b8 authored by Marcel's avatar Marcel
Browse files

nixos/ipa: add timeserver enable option

parent 5eecbe3b
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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;
  };