Merge pull request #110122 from helsinki-systems/timeservers-option-type

networking, chrony, ntpd, timesyncd: add timeServers option type
This commit is contained in:
Lassulus 2021-01-20 19:36:06 +01:00 committed by GitHub
commit c3116cdce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,7 @@ in
"2.nixos.pool.ntp.org" "2.nixos.pool.ntp.org"
"3.nixos.pool.ntp.org" "3.nixos.pool.ntp.org"
]; ];
type = types.listOf types.str;
description = '' description = ''
The set of NTP servers from which to synchronise. The set of NTP servers from which to synchronise.
''; '';

View File

@ -41,6 +41,7 @@ in
servers = mkOption { servers = mkOption {
default = config.networking.timeServers; default = config.networking.timeServers;
type = types.listOf types.str;
description = '' description = ''
The set of NTP servers from which to synchronise. The set of NTP servers from which to synchronise.
''; '';

View File

@ -79,6 +79,7 @@ in
servers = mkOption { servers = mkOption {
default = config.networking.timeServers; default = config.networking.timeServers;
type = types.listOf types.str;
description = '' description = ''
The set of NTP servers from which to synchronise. The set of NTP servers from which to synchronise.
''; '';

View File

@ -16,6 +16,7 @@ with lib;
}; };
servers = mkOption { servers = mkOption {
default = config.networking.timeServers; default = config.networking.timeServers;
type = types.listOf types.str;
description = '' description = ''
The set of NTP servers from which to synchronise. The set of NTP servers from which to synchronise.
''; '';