From fab77a48f0429319dcb7dbfff7f4bfde368c4a8c Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Sun, 7 Jul 2024 19:09:48 -0400 Subject: [PATCH] added startup_validation for palatine-hill --- systems/jeeves-jr/services.nix | 1 + systems/jeeves/services.nix | 1 + systems/palatine-hill/services.nix | 21 +++++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 systems/palatine-hill/services.nix diff --git a/systems/jeeves-jr/services.nix b/systems/jeeves-jr/services.nix index a52c05c..9fc783d 100644 --- a/systems/jeeves-jr/services.nix +++ b/systems/jeeves-jr/services.nix @@ -6,6 +6,7 @@ description = "validates startup"; serviceConfig = { Type = "oneshot"; + Environment = "WEBHOOK_URL=test"; ExecStart = "${inputs.server_tools.packages.x86_64-linux.default}/bin/validate_jeevesjr"; }; }; diff --git a/systems/jeeves/services.nix b/systems/jeeves/services.nix index b4cadde..db28b1a 100644 --- a/systems/jeeves/services.nix +++ b/systems/jeeves/services.nix @@ -6,6 +6,7 @@ description = "maintains /zfs/storage/plex permissions"; serviceConfig = { Type = "oneshot"; + Environment = "WEBHOOK_URL=test"; ExecStart = "${pkgs.bash}/bin/bash ${./scripts/plex_permission.sh}"; }; }; diff --git a/systems/palatine-hill/services.nix b/systems/palatine-hill/services.nix new file mode 100644 index 0000000..a202723 --- /dev/null +++ b/systems/palatine-hill/services.nix @@ -0,0 +1,21 @@ +{ inputs, ... }: +{ + systemd = { + services.startup_validation = { + wantedBy = [ "multi-user.target" ]; + description = "validates startup"; + serviceConfig = { + Type = "oneshot"; + Environment = "WEBHOOK_URL=test"; + ExecStart = "${inputs.server_tools.packages.x86_64-linux.default}/bin/validate_palatine_hill"; + }; + }; + timers.startup_validation = { + wantedBy = [ "timers.target" ]; + timerConfig = { + OnBootSec = "10min"; + Unit = "startup_validation.service"; + }; + }; + }; +}