From 39bcaba5cce1bdcfef91453c53a06ed8ff85b9c1 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 13 Nov 2023 22:51:49 +0100 Subject: [PATCH] modules/impurity-logger: absolutize systemd-cat --- modules/impurity-logger/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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