From a35050d9bc640309a8216b520a9b0350266de74f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 27 Mar 2023 17:49:49 -0700 Subject: modules/sendsms: gate the unit with a file To prevent the unit to be triggered multiple times if the host has already rebooted, we create a gate file when we're done running, and before running, we check if the file exists. Enable the service on tahoe. Don't restart the unit when its definition has changed. --- hosts/tahoe/secrets/sendsms/config.age | Bin 627 -> 650 bytes hosts/tahoe/services.nix | 2 ++ 2 files changed, 2 insertions(+) (limited to 'hosts') diff --git a/hosts/tahoe/secrets/sendsms/config.age b/hosts/tahoe/secrets/sendsms/config.age index d925f98..ecc0845 100644 Binary files a/hosts/tahoe/secrets/sendsms/config.age and b/hosts/tahoe/secrets/sendsms/config.age differ diff --git a/hosts/tahoe/services.nix b/hosts/tahoe/services.nix index cdd0342..87a71cf 100644 --- a/hosts/tahoe/services.nix +++ b/hosts/tahoe/services.nix @@ -65,5 +65,7 @@ in "/home/fcuny/media/videos" ]; }; + + sendsms.enable = true; }; } -- cgit 1.4.1