From 8af1d49858d2ccf504bc33d066ba047795d43093 Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Wed, 26 Jul 2023 17:22:22 +0200 Subject: [PATCH] nixos/osquery: do not use the local database for osqueryi Because the local database is used by the osquery deamon, running osqueri fails with: IO error: While lock file: /var/lib/osquery/osquery.db/LOCK: Resource temporarily unavailable --- nixos/modules/services/monitoring/osquery.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/osquery.nix b/nixos/modules/services/monitoring/osquery.nix index 98524d0c700c..4f6c2557a641 100644 --- a/nixos/modules/services/monitoring/osquery.nix +++ b/nixos/modules/services/monitoring/osquery.nix @@ -21,7 +21,7 @@ let osqueryi = pkgs.runCommand "osqueryi" { nativeBuildInputs = [ pkgs.makeWrapper ]; } '' mkdir -p $out/bin makeWrapper ${pkgs.osquery}/bin/osqueryi $out/bin/osqueryi \ - --add-flags "--flagfile ${flagfile}" + --add-flags "--flagfile ${flagfile} --disable-database" ''; in {