Unverified Commit 34fc4537 authored by Fernando Rodrigues's avatar Fernando Rodrigues Committed by GitHub
Browse files

nixos/ipa: add timeserver enable option (#461739)

parents e604d0c9 5ffe57b8
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;
  };