diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2019-11-20 08:40:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-20 08:40:07 +0100 |
commit | 58fb23f72ad916c8bbfa3c3bc2d0c83c9cfcdd16 (patch) | |
tree | d993125c73c329cab0ab9cc69053a97235a71c8d | |
parent | 09f9bcd19c30395e4a72d649b63655dd3d1d9fae (diff) | |
parent | 6c019a867c330f9ffc6049f8ddb35fe778046929 (diff) | |
download | nixpkgs-58fb23f72ad916c8bbfa3c3bc2d0c83c9cfcdd16.tar nixpkgs-58fb23f72ad916c8bbfa3c3bc2d0c83c9cfcdd16.tar.gz nixpkgs-58fb23f72ad916c8bbfa3c3bc2d0c83c9cfcdd16.tar.bz2 nixpkgs-58fb23f72ad916c8bbfa3c3bc2d0c83c9cfcdd16.tar.lz nixpkgs-58fb23f72ad916c8bbfa3c3bc2d0c83c9cfcdd16.tar.xz nixpkgs-58fb23f72ad916c8bbfa3c3bc2d0c83c9cfcdd16.tar.zst nixpkgs-58fb23f72ad916c8bbfa3c3bc2d0c83c9cfcdd16.zip |
Merge pull request #73802 from cdepillabout/add-extraconfig-to-timesyncd
nixos/timesyncd: add extraConfig option
-rw-r--r-- | nixos/modules/system/boot/timesyncd.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/timesyncd.nix b/nixos/modules/system/boot/timesyncd.nix index 8282cdd6f3a..0b1d0ff6c22 100644 --- a/nixos/modules/system/boot/timesyncd.nix +++ b/nixos/modules/system/boot/timesyncd.nix @@ -20,6 +20,18 @@ with lib; The set of NTP servers from which to synchronise. ''; }; + extraConfig = mkOption { + default = ""; + type = types.lines; + example = '' + PollIntervalMaxSec=180 + ''; + description = '' + Extra config options for systemd-timesyncd. See + <link xlink:href="https://www.freedesktop.org/software/systemd/man/timesyncd.conf.html"> + timesyncd.conf(5)</link> for available options. + ''; + }; }; }; @@ -35,6 +47,7 @@ with lib; environment.etc."systemd/timesyncd.conf".text = '' [Time] NTP=${concatStringsSep " " config.services.timesyncd.servers} + ${config.services.timesyncd.extraConfig} ''; users.users.systemd-timesync.uid = config.ids.uids.systemd-timesync; |