diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-04-19 21:11:14 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-04-19 22:06:45 +0200 |
commit | c87977e97d97b8036caafb3a7e855c246712d739 (patch) | |
tree | e9954b3f6f34422bc2e787b4d792379066beb058 /nixos/modules/system/boot/timesyncd.nix | |
parent | f8dbe5f376978947067283c6d03087d7948c50de (diff) | |
download | nixlib-c87977e97d97b8036caafb3a7e855c246712d739.tar nixlib-c87977e97d97b8036caafb3a7e855c246712d739.tar.gz nixlib-c87977e97d97b8036caafb3a7e855c246712d739.tar.bz2 nixlib-c87977e97d97b8036caafb3a7e855c246712d739.tar.lz nixlib-c87977e97d97b8036caafb3a7e855c246712d739.tar.xz nixlib-c87977e97d97b8036caafb3a7e855c246712d739.tar.zst nixlib-c87977e97d97b8036caafb3a7e855c246712d739.zip |
Don't include networkd units unless enabled
Otherwise, the enabled -> disabled transition won't be handled correctly (switch-to-configuration currently assumes that if a unit is running and exists, it should be restarted).
Diffstat (limited to 'nixos/modules/system/boot/timesyncd.nix')
-rw-r--r-- | nixos/modules/system/boot/timesyncd.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/timesyncd.nix b/nixos/modules/system/boot/timesyncd.nix index fd4be47ad721..cba965b1cd2b 100644 --- a/nixos/modules/system/boot/timesyncd.nix +++ b/nixos/modules/system/boot/timesyncd.nix @@ -18,6 +18,8 @@ with lib; config = mkIf config.services.timesyncd.enable { + systemd.additionalUpstreamSystemUnits = [ "systemd-timesyncd.service" ]; + systemd.services.systemd-timesyncd = { wantedBy = [ "sysinit.target" ]; restartTriggers = [ config.environment.etc."systemd/timesyncd.conf".source ]; |