diff options
author | datafoo <34766150+datafoo@users.noreply.github.com> | 2024-08-23 14:42:27 +0200 |
---|---|---|
committer | datafoo <34766150+datafoo@users.noreply.github.com> | 2024-09-04 12:14:24 +0200 |
commit | 34efcf8aef8682eb4fa0cce2f590f877ce52d06f (patch) | |
tree | 513fbac66137a355933134a0dedf6ab741fb8fee /nixos/modules/system | |
parent | 45c0d047355a8b847fb1606072c6a60b2887116d (diff) |
nixos/timesyncd: minor refactoring
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/timesyncd.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/system/boot/timesyncd.nix b/nixos/modules/system/boot/timesyncd.nix index 82e3b8c15759a..b75a413fa58ef 100644 --- a/nixos/modules/system/boot/timesyncd.nix +++ b/nixos/modules/system/boot/timesyncd.nix @@ -9,11 +9,11 @@ in options = { - services.timesyncd = { + services.timesyncd = with types; { enable = mkOption { default = !config.boot.isContainer; defaultText = literalExpression "!config.boot.isContainer"; - type = types.bool; + type = bool; description = '' Enables the systemd NTP client daemon. ''; @@ -21,7 +21,7 @@ in servers = mkOption { default = config.networking.timeServers; defaultText = literalExpression "config.networking.timeServers"; - type = types.listOf types.str; + type = listOf str; description = '' The set of NTP servers from which to synchronise. Note if this is set to an empty list, the defaults systemd itself is @@ -31,7 +31,7 @@ in }; extraConfig = mkOption { default = ""; - type = types.lines; + type = lines; example = '' PollIntervalMaxSec=180 ''; |