systemd: hard-code yubikey-touch-detector for now as it's not a HM module

This commit is contained in:
Ryota 2026-01-29 21:50:18 +00:00
parent 9eb3147095
commit 56365fb9a8
No known key found for this signature in database

View file

@ -8,9 +8,6 @@
let let
cfg = config.sops; cfg = config.sops;
sops-install-secrets = cfg.package; sops-install-secrets = cfg.package;
# Check if yubikey-touch-detector is enabled for ordering dependency
yubikeyTouchDetectorEnabled = config.services.yubikey-touch-detector.enable or false;
secretType = lib.types.submodule ( secretType = lib.types.submodule (
{ name, ... }: { name, ... }:
{ {
@ -410,8 +407,7 @@ in
Unit = { Unit = {
Description = "sops-nix activation"; Description = "sops-nix activation";
After = cfg.age.systemdDeps After = cfg.age.systemdDeps
++ lib.optional (cfg.age.requirePcscd && yubikeyTouchDetectorEnabled) ++ lib.optional cfg.age.requirePcscd "yubikey-touch-detector.service";
"yubikey-touch-detector.service";
Wants = cfg.age.systemdDeps; Wants = cfg.age.systemdDeps;
}; };
Service = { Service = {