From 045e2ff15cc52514579c5efd4da3ee8809bbb42a Mon Sep 17 00:00:00 2001 From: Alois Date: Sun, 17 May 2026 19:30:11 +0200 Subject: [PATCH] [Add] systemd log wrapper to nix flake --- flake.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 8e9327e..8cea3ba 100644 --- a/flake.nix +++ b/flake.nix @@ -178,13 +178,14 @@ ExecStart = if cfg.useTmux then pkgs.writeShellScript "iota-start" '' - ${pkgs.tmux}/bin/tmux -S ${cfg.dataDir}/tmux.sock new-session -d -s iota ${cfg.package}/bin/iota + ${pkgs.tmux}/bin/tmux -S ${cfg.dataDir}/tmux.sock new-session -d -s iota \ + '${cfg.package}/bin/iota 2>&1 | ${pkgs.systemd}/bin/systemd-cat -t iota-daemon' while ${pkgs.tmux}/bin/tmux -S ${cfg.dataDir}/tmux.sock has-session -t iota 2>/dev/null; do sleep 2 done '' else - "${cfg.package}/bin/iota"; + "${pkgs.systemd}/bin/systemd-cat -t iota-daemon ${cfg.package}/bin/iota"; ExecStartPre = [ ("+" + pkgs.writeShellScript "iota-setup" ''