From 36c17b16ae9ae4abb1233c4e0254f3ab887f8dc6 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 17 Dec 2017 02:25:41 +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 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hel.nix b/hel.nix index d941684a..14da98ad 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" + KERNELS=="1-2:1.3", ENV{ID_MM_DEVICE_IGNORE}="1", SYMLINK+="gpsctl0", SYSTEMD_WANTS+="gpscfg.timer", TAG+="systemd" ''; systemd.services."gpscfg" = { @@ -508,12 +508,14 @@ ''; }; - systemd.timers."gpscfg".timerConfig = { - OnActiveSec = "30s"; - OnUnitActiveSec = "30s"; - }; + systemd.timers."gpscfg" = { + enable = true; - systemd.targets."multi-user".wants = ["gpscfg.timer"]; + timerConfig = { + OnActiveSec = "0s"; + OnUnitInactiveSec = "5m"; + }; + }; systemd.services."NetworkManager-wait-online".enable = true; -- cgit v1.2.3