diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-17 02:25:41 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-17 02:25:41 +0100 |
commit | 36c17b16ae9ae4abb1233c4e0254f3ab887f8dc6 (patch) | |
tree | c743640e4e27868fdaa87920574c328e0c91e519 | |
parent | 3b408dc18654b536f812dfeeb51ed1d34e8e48e6 (diff) | |
download | nixos-36c17b16ae9ae4abb1233c4e0254f3ab887f8dc6.tar nixos-36c17b16ae9ae4abb1233c4e0254f3ab887f8dc6.tar.gz nixos-36c17b16ae9ae4abb1233c4e0254f3ab887f8dc6.tar.bz2 nixos-36c17b16ae9ae4abb1233c4e0254f3ab887f8dc6.tar.xz nixos-36c17b16ae9ae4abb1233c4e0254f3ab887f8dc6.zip |
…
-rw-r--r-- | hel.nix | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 | ||