diff --git a/modules/hardware/nfc.nix b/modules/hardware/nfc.nix index 52f6513..2f632d6 100644 --- a/modules/hardware/nfc.nix +++ b/modules/hardware/nfc.nix @@ -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";