Compare commits

..

No commits in common. "a89d69d201549d5d305ad56a20f05b3ac956be11" and "024ea1168a40f3981eb99b37d99a4d8a787a4ea0" have entirely different histories.

View file

@ -3,7 +3,6 @@
lib,
pkgs,
utils,
config,
...
}: let
inherit (lib) types;
@ -11,9 +10,8 @@
in {
options.services.musicomp.jobs = lib.mkOption {
description = ''
Compression jobs to run with musicomp.
Periodic jobs to run with musicomp.
'';
default = {};
# type = types.attrsOf (types.submodule ({name, ...}: {
type = types.attrsOf (types.submodule {
options = {
@ -72,8 +70,9 @@ in {
};
};
description = ''
Compression job to run with musicomp.
Periodic compression jobs to run with musicomp.
'';
default = {};
});
};
@ -83,8 +82,10 @@ 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 ''