summary refs log tree commit diff
diff options
context:
space:
mode:
authorArian van Putten <arian.vanputten@gmail.com>2020-05-19 11:06:32 +0200
committerFlorian Klink <flokli@flokli.de>2020-06-13 12:23:45 +0200
commit71a6d32c18edd0312a7436910b00d21d5e6d4c0f (patch)
tree681428b66d31ed8fdb92c52ed913b16baac79a97
parentcd1dedac67d4b077a556a660ef5724c909da8006 (diff)
downloadnixpkgs-71a6d32c18edd0312a7436910b00d21d5e6d4c0f.tar
nixpkgs-71a6d32c18edd0312a7436910b00d21d5e6d4c0f.tar.gz
nixpkgs-71a6d32c18edd0312a7436910b00d21d5e6d4c0f.tar.bz2
nixpkgs-71a6d32c18edd0312a7436910b00d21d5e6d4c0f.tar.lz
nixpkgs-71a6d32c18edd0312a7436910b00d21d5e6d4c0f.tar.xz
nixpkgs-71a6d32c18edd0312a7436910b00d21d5e6d4c0f.tar.zst
nixpkgs-71a6d32c18edd0312a7436910b00d21d5e6d4c0f.zip
nixos/timesyncd: Make dbus-activatible
Upstream has this alias too; so that dbus activation works.
What I don't fully understand is why this would ever be useful given
this unit is already started way in early boot; even before dbus is up.
But lets just keep behaviour similar to upstream and then ask these
questions to upstream.
-rw-r--r--nixos/modules/system/boot/timesyncd.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/timesyncd.nix b/nixos/modules/system/boot/timesyncd.nix
index 9e2f36ca01f..35fb5578b07 100644
--- a/nixos/modules/system/boot/timesyncd.nix
+++ b/nixos/modules/system/boot/timesyncd.nix
@@ -41,6 +41,7 @@ with lib;
 
     systemd.services.systemd-timesyncd = {
       wantedBy = [ "sysinit.target" ];
+      aliases = [ "dbus-org.freedesktop.timesync1.service" ];
       restartTriggers = [ config.environment.etc."systemd/timesyncd.conf".source ];
     };