From 69cb8e9a3faf65f4a5ec1b5701da9d4329758fe2 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sun, 17 Sep 2023 20:10:06 +0100 Subject: [PATCH] fix: actually run the extra scripts --- flake.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index e31ef88..82a15db 100644 --- a/flake.nix +++ b/flake.nix @@ -57,6 +57,8 @@ HOME = cfg.home; DATABASE = "database.db"; }; + + service_name = script: lib.strings.sanitizeDerivationName("${cfg.user}@${script}"); # oneshot scripts to run serviceGenerator = mapAttrs' (script: time: nameValuePair (service_name script) { @@ -206,7 +208,11 @@ ]; }; }; - }; + } // serviceGenerator scripts; + + # timers to run the above services + systemd.timers = timerGenerator scripts; + }; }; }