diff --git a/modules/impurity-logger/default.nix b/modules/impurity-logger/default.nix index f15a551..9f52ad7 100644 --- a/modules/impurity-logger/default.nix +++ b/modules/impurity-logger/default.nix @@ -1,8 +1,8 @@ -{ lib, pkgs, ... }: +{ config, lib, pkgs, ... }: let mkTracer = name: target: exe: lib.getExe (pkgs.writeShellScriptBin name '' - echo "PID $PPID executed ${target}" |& systemd-cat --identifier=impurity >/dev/null 2>/dev/null + echo "PID $PPID executed ${target}" |& ${config.systemd.package}/bin/systemd-cat --identifier=impurity >/dev/null 2>/dev/null exec -a "$0" '${exe}' "$@" ''); in