From 4080f24b41edbe6b3af69e643918fe4aa52b6dfa Mon Sep 17 00:00:00 2001 From: Krzysztof Saczuk Date: Sun, 15 Sep 2024 15:58:23 +0200 Subject: [PATCH] refactor(hardware): make `nfc` service run after `sleep.target` --- modules/hardware/nfc.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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";