mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-02-22 12:55:29 +08:00
systemd: hard-code yubikey-touch-detector for now as it's not a HM module
This commit is contained in:
parent
9eb3147095
commit
56365fb9a8
1 changed files with 1 additions and 5 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue