From f45fbb38fe68f0df1b76b8cda844b47427718061 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 17 Dec 2017 02:28:52 +0100 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hel.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'hel.nix') diff --git a/hel.nix b/hel.nix index 14da98ad..9212d7a1 100644 --- a/hel.nix +++ b/hel.nix @@ -497,7 +497,7 @@ SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="${systemd}/bin/systemctl --no-block start ac-plugged.service" KERNELS=="1-2:1.2", ENV{ID_MM_DEVICE_IGNORE}="1", SYMLINK+="gps0" - KERNELS=="1-2:1.3", ENV{ID_MM_DEVICE_IGNORE}="1", SYMLINK+="gpsctl0", SYSTEMD_WANTS+="gpscfg.timer", TAG+="systemd" + KERNELS=="1-2:1.3", ENV{ID_MM_DEVICE_IGNORE}="1", SYMLINK+="gpsctl0" ''; systemd.services."gpscfg" = { @@ -511,6 +511,11 @@ systemd.timers."gpscfg" = { enable = true; + bindsTo = [ "dev-gpscfg0.device" ]; + after = [ "dev-gpscfg0.device" ]; + + wantedBy = [ "dev-gpscfg0.device" ]; + timerConfig = { OnActiveSec = "0s"; OnUnitInactiveSec = "5m"; -- cgit v1.2.3