diff options
author | Lassulus <github@lassul.us> | 2021-01-20 19:36:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 19:36:06 +0100 |
commit | c3116cdce215f784607902602cbec471b00171e8 (patch) | |
tree | 85ec49bafd7b324a1a62ce7264e00f8377f1a387 /nixos | |
parent | 97dba166cfc84ad7a9dd170c39cef0c69b5258b0 (diff) | |
parent | 1572940688927226c53182aa8595f2e2bc196ecf (diff) |
Merge pull request #110122 from helsinki-systems/timeservers-option-type
networking, chrony, ntpd, timesyncd: add timeServers option type
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/config/networking.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/networking/ntp/chrony.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/networking/ntp/ntpd.nix | 1 | ||||
-rw-r--r-- | nixos/modules/system/boot/timesyncd.nix | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix index c09588834cf15..ef747774b25a8 100644 --- a/nixos/modules/config/networking.nix +++ b/nixos/modules/config/networking.nix @@ -58,6 +58,7 @@ in "2.nixos.pool.ntp.org" "3.nixos.pool.ntp.org" ]; + type = types.listOf types.str; description = '' The set of NTP servers from which to synchronise. ''; diff --git a/nixos/modules/services/networking/ntp/chrony.nix b/nixos/modules/services/networking/ntp/chrony.nix index e6fa48daf46cd..115340924a25d 100644 --- a/nixos/modules/services/networking/ntp/chrony.nix +++ b/nixos/modules/services/networking/ntp/chrony.nix @@ -41,6 +41,7 @@ in servers = mkOption { default = config.networking.timeServers; + type = types.listOf types.str; description = '' The set of NTP servers from which to synchronise. ''; diff --git a/nixos/modules/services/networking/ntp/ntpd.nix b/nixos/modules/services/networking/ntp/ntpd.nix index 51398851adc6d..861b0db01a489 100644 --- a/nixos/modules/services/networking/ntp/ntpd.nix +++ b/nixos/modules/services/networking/ntp/ntpd.nix @@ -79,6 +79,7 @@ in servers = mkOption { default = config.networking.timeServers; + type = types.listOf types.str; description = '' The set of NTP servers from which to synchronise. ''; diff --git a/nixos/modules/system/boot/timesyncd.nix b/nixos/modules/system/boot/timesyncd.nix index 35fb5578b0705..692315dbe99c4 100644 --- a/nixos/modules/system/boot/timesyncd.nix +++ b/nixos/modules/system/boot/timesyncd.nix @@ -16,6 +16,7 @@ with lib; }; servers = mkOption { default = config.networking.timeServers; + type = types.listOf types.str; description = '' The set of NTP servers from which to synchronise. ''; |