base/chrony: add opt for ntpServers, set default
This commit is contained in:
@@ -16,6 +16,20 @@ let
|
||||
in
|
||||
{
|
||||
options.network = {
|
||||
ntpServers = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [
|
||||
"0.us.pool.ntp.org"
|
||||
"1.us.pool.ntp.org"
|
||||
"2.us.pool.ntp.org"
|
||||
"3.us.pool.ntp.org"
|
||||
];
|
||||
description = "List of addresses of NTP servers to use for chrony";
|
||||
example = [
|
||||
"time.cloudflare.com"
|
||||
"time.google.com"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
@@ -27,6 +41,7 @@ in
|
||||
enable = true;
|
||||
enableNTS = true;
|
||||
serverOption = "iburst";
|
||||
servers = cfg.ntpServers;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user