summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-12-17 02:25:41 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-12-17 02:25:41 +0100
commit36c17b16ae9ae4abb1233c4e0254f3ab887f8dc6 (patch)
treec743640e4e27868fdaa87920574c328e0c91e519
parent3b408dc18654b536f812dfeeb51ed1d34e8e48e6 (diff)
downloadnixos-36c17b16ae9ae4abb1233c4e0254f3ab887f8dc6.tar
nixos-36c17b16ae9ae4abb1233c4e0254f3ab887f8dc6.tar.gz
nixos-36c17b16ae9ae4abb1233c4e0254f3ab887f8dc6.tar.bz2
nixos-36c17b16ae9ae4abb1233c4e0254f3ab887f8dc6.tar.xz
nixos-36c17b16ae9ae4abb1233c4e0254f3ab887f8dc6.zip
-rw-r--r--hel.nix14
1 files 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 @@
497 SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="${systemd}/bin/systemctl --no-block start ac-plugged.service" 497 SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="${systemd}/bin/systemctl --no-block start ac-plugged.service"
498 498
499 KERNELS=="1-2:1.2", ENV{ID_MM_DEVICE_IGNORE}="1", SYMLINK+="gps0" 499 KERNELS=="1-2:1.2", ENV{ID_MM_DEVICE_IGNORE}="1", SYMLINK+="gps0"
500 KERNELS=="1-2:1.3", ENV{ID_MM_DEVICE_IGNORE}="1", SYMLINK+="gpsctl0" 500 KERNELS=="1-2:1.3", ENV{ID_MM_DEVICE_IGNORE}="1", SYMLINK+="gpsctl0", SYSTEMD_WANTS+="gpscfg.timer", TAG+="systemd"
501 ''; 501 '';
502 502
503 systemd.services."gpscfg" = { 503 systemd.services."gpscfg" = {
@@ -508,12 +508,14 @@
508 ''; 508 '';
509 }; 509 };
510 510
511 systemd.timers."gpscfg".timerConfig = { 511 systemd.timers."gpscfg" = {
512 OnActiveSec = "30s"; 512 enable = true;
513 OnUnitActiveSec = "30s";
514 };
515 513
516 systemd.targets."multi-user".wants = ["gpscfg.timer"]; 514 timerConfig = {
515 OnActiveSec = "0s";
516 OnUnitInactiveSec = "5m";
517 };
518 };
517 519
518 systemd.services."NetworkManager-wait-online".enable = true; 520 systemd.services."NetworkManager-wait-online".enable = true;
519 521