From 56365fb9a8cf562dc12f917693de76315f9788b7 Mon Sep 17 00:00:00 2001 From: Ryota Date: Thu, 29 Jan 2026 21:50:18 +0000 Subject: [PATCH] systemd: hard-code yubikey-touch-detector for now as it's not a HM module --- modules/home-manager/sops.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/home-manager/sops.nix b/modules/home-manager/sops.nix index 66896d0..f8eec36 100644 --- a/modules/home-manager/sops.nix +++ b/modules/home-manager/sops.nix @@ -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 = {