diff --git a/nixos/modules/services/security/crowdsec.nix b/nixos/modules/services/security/crowdsec.nix index 7c1c2752006b..d5cb5a1bb6c7 100644 --- a/nixos/modules/services/security/crowdsec.nix +++ b/nixos/modules/services/security/crowdsec.nix @@ -594,7 +594,7 @@ in ] ++ lib.optionals (cfg.settings.capi.credentialsFile != null) [ '' - if ! grep -q password "${cfg.settings.capi.credentialsFile}" ]; then + if ! ${lib.getExe pkgs.gnugrep} -q password "${cfg.settings.capi.credentialsFile}" ]; then ${lib.getExe cscli} capi register fi ''