From a89d69d201549d5d305ad56a20f05b3ac956be11 Mon Sep 17 00:00:00 2001 From: Lukas Wurzinger Date: Sun, 5 Jan 2025 00:17:37 +0100 Subject: [PATCH] various --- modules/musicomp.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/musicomp.nix b/modules/musicomp.nix index bc3f5e6..d3156ad 100644 --- a/modules/musicomp.nix +++ b/modules/musicomp.nix @@ -11,8 +11,9 @@ in { options.services.musicomp.jobs = lib.mkOption { description = '' - Periodic jobs to run with musicomp. + Compression jobs to run with musicomp. ''; + default = {}; # type = types.attrsOf (types.submodule ({name, ...}: { type = types.attrsOf (types.submodule { options = { @@ -71,9 +72,8 @@ in { }; }; description = '' - Periodic compression jobs to run with musicomp. + Compression job to run with musicomp. ''; - default = {}; }); }; @@ -83,10 +83,8 @@ in { ( name: job: lib.nameValuePair "musicomp-jobs-${name}" { + wantedBy = ["multi-user.target"]; restartIfChanged = false; - # TODO - wants = ["network-online.target"]; - after = ["network-online.target"]; script = '' ${lib.optionalString job.inhibitsSleep ''