Skip to content

Commit

Permalink
refactor(hardware): make nfc service run after sleep.target
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuciael committed Sep 15, 2024
1 parent 54e31d8 commit 4080f24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/hardware/nfc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ in {
systemd.services = mkIf (hostname == "laptop") {
"controlvault2-nfc-enable" = {
description = "Run controlvault2-nfc-enable script on startup";
wantedBy = ["default.target"];
wantedBy = ["sleep.target" "default.target"];
after = ["sleep.target"];
script = "${getExe pkgs.controlvault2-nfc-enable} on";
serviceConfig = {
Type = "oneshot";
Expand Down

0 comments on commit 4080f24

Please sign in to comment.