summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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