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
cfg = config.sops;
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 (
{ name, ... }:
{
@ -410,8 +407,7 @@ in
Unit = {
Description = "sops-nix activation";
After = cfg.age.systemdDeps
++ lib.optional (cfg.age.requirePcscd && yubikeyTouchDetectorEnabled)
"yubikey-touch-detector.service";
++ lib.optional cfg.age.requirePcscd "yubikey-touch-detector.service";
Wants = cfg.age.systemdDeps;
};
Service = {