about summary refs log tree commit diff
path: root/hosts/tahoe
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-03-27 17:49:49 -0700
committerFranck Cuny <franck@fcuny.net>2023-03-27 19:11:25 -0700
commita35050d9bc640309a8216b520a9b0350266de74f (patch)
tree5afb8a74db49cd2566fdb9311d1bdff1ab0b00d3 /hosts/tahoe
parentmodules/console: fix syntax (diff)
downloadworld-a35050d9bc640309a8216b520a9b0350266de74f.tar.gz
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.
Diffstat (limited to '')
-rw-r--r--hosts/tahoe/secrets/sendsms/config.agebin627 -> 650 bytes
-rw-r--r--hosts/tahoe/services.nix2
2 files changed, 2 insertions, 0 deletions
diff --git a/hosts/tahoe/secrets/sendsms/config.age b/hosts/tahoe/secrets/sendsms/config.age
index d925f98..ecc0845 100644
--- a/hosts/tahoe/secrets/sendsms/config.age
+++ b/hosts/tahoe/secrets/sendsms/config.age
Binary files differdiff --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;
   };
 }