diff options
| -rw-r--r-- | hel.nix | 7 |
1 files changed, 6 insertions, 1 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", 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"; |
