summaryrefslogtreecommitdiff
path: root/hel.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-12-17 02:28:52 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-12-17 02:28:52 +0100
commitf45fbb38fe68f0df1b76b8cda844b47427718061 (patch)
treec1c04c3a5851ab5982a286240f7e0a660e36bb43 /hel.nix
parent36c17b16ae9ae4abb1233c4e0254f3ab887f8dc6 (diff)
downloadnixos-f45fbb38fe68f0df1b76b8cda844b47427718061.tar
nixos-f45fbb38fe68f0df1b76b8cda844b47427718061.tar.gz
nixos-f45fbb38fe68f0df1b76b8cda844b47427718061.tar.bz2
nixos-f45fbb38fe68f0df1b76b8cda844b47427718061.tar.xz
nixos-f45fbb38fe68f0df1b76b8cda844b47427718061.zip
Diffstat (limited to 'hel.nix')
-rw-r--r--hel.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/hel.nix b/hel.nix
index 14da98ad..9212d7a1 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", SYSTEMD_WANTS+="gpscfg.timer", TAG+="systemd" 500 KERNELS=="1-2:1.3", ENV{ID_MM_DEVICE_IGNORE}="1", SYMLINK+="gpsctl0"
501 ''; 501 '';
502 502
503 systemd.services."gpscfg" = { 503 systemd.services."gpscfg" = {
@@ -511,6 +511,11 @@
511 systemd.timers."gpscfg" = { 511 systemd.timers."gpscfg" = {
512 enable = true; 512 enable = true;
513 513
514 bindsTo = [ "dev-gpscfg0.device" ];
515 after = [ "dev-gpscfg0.device" ];
516
517 wantedBy = [ "dev-gpscfg0.device" ];
518
514 timerConfig = { 519 timerConfig = {
515 OnActiveSec = "0s"; 520 OnActiveSec = "0s";
516 OnUnitInactiveSec = "5m"; 521 OnUnitInactiveSec = "5m";