From 8e743e1f6f8cced06f2e3ee1bb73dea38e22617f Mon Sep 17 00:00:00 2001 From: Christian Kampka Date: Mon, 12 Aug 2024 21:36:23 +0200 Subject: [PATCH] Add crowdsec to cscli path --- modules/crowdsec/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/crowdsec/default.nix b/modules/crowdsec/default.nix index df446ab..208acdb 100644 --- a/modules/crowdsec/default.nix +++ b/modules/crowdsec/default.nix @@ -151,6 +151,9 @@ in { set -eu set -o pipefail + # cscli needs crowdsec on it's path in order to be able to run `cscli explain` + export PATH=$PATH:${lib.makeBinPath [pkg]} + exec ${pkg}/bin/cscli -c=${configFile} "''${@}" ''; in