cleanup: statix

This commit is contained in:
2024-07-04 14:38:37 -06:00
parent 6055c9e63a
commit f177fde0ef
10 changed files with 49 additions and 65 deletions

View File

@@ -37,7 +37,7 @@
lib.nameValuePair "${script.name}"
(lib.mkIf (script.enable && script.service) {
restartIfChanged = true;
description = script.description;
inherit (script) description;
wantedBy = [ "default.target" ];
path = [ pkgs.nix script.package ];
serviceConfig = {
@@ -51,7 +51,7 @@
lib.nameValuePair "${script.name}"
(lib.mkIf (script.enable && script.service) {
enable = true;
description = script.description;
inherit (script) description;
wantedBy = [ "timers.target" ];
timerConfig = { OnCalendar = script.timer; };
})) config.my.scripts;