summaryrefslogtreecommitdiff
path: root/custom/unit-status-mail.nix
diff options
context:
space:
mode:
Diffstat (limited to 'custom/unit-status-mail.nix')
-rw-r--r--custom/unit-status-mail.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/unit-status-mail.nix b/custom/unit-status-mail.nix
index 39706c2e..eae03594 100644
--- a/custom/unit-status-mail.nix
+++ b/custom/unit-status-mail.nix
@@ -34,7 +34,7 @@ in {
34 serviceConfig = { 34 serviceConfig = {
35 Type = "oneshot"; 35 Type = "oneshot";
36 }; 36 };
37 scriptArgs = "\"%I\" \"Hostname: %H\" \"Machine-ID: %m\" \"Boot-ID: %b\""; 37 scriptArgs = "\"%i\" \"Hostname: %H\" \"Machine-ID: %m\" \"Boot-ID: %b\"";
38 path = with pkgs; [nettools]; 38 path = with pkgs; [nettools];
39 script = '' 39 script = ''
40 #!${pkgs.stdenv.shell} 40 #!${pkgs.stdenv.shell}
@@ -54,7 +54,7 @@ in {
54 54
55 Status report for unit: $UNIT 55 Status report for unit: $UNIT
56 $EXTRA 56 $EXTRA
57 $(systemctl status $UNIT) 57 $(systemctl status --lines=1000 --full $UNIT)
58 EOF 58 EOF
59 ''; 59 '';
60 }; 60 };