Compare commits
No commits in common. "a89d69d201549d5d305ad56a20f05b3ac956be11" and "024ea1168a40f3981eb99b37d99a4d8a787a4ea0" have entirely different histories.
a89d69d201
...
024ea1168a
|
@ -3,7 +3,6 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
utils,
|
utils,
|
||||||
config,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) types;
|
inherit (lib) types;
|
||||||
|
@ -11,9 +10,8 @@
|
||||||
in {
|
in {
|
||||||
options.services.musicomp.jobs = lib.mkOption {
|
options.services.musicomp.jobs = lib.mkOption {
|
||||||
description = ''
|
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 ({name, ...}: {
|
||||||
type = types.attrsOf (types.submodule {
|
type = types.attrsOf (types.submodule {
|
||||||
options = {
|
options = {
|
||||||
|
@ -72,8 +70,9 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
description = ''
|
description = ''
|
||||||
Compression job to run with musicomp.
|
Periodic compression jobs to run with musicomp.
|
||||||
'';
|
'';
|
||||||
|
default = {};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -83,8 +82,10 @@ in {
|
||||||
(
|
(
|
||||||
name: job:
|
name: job:
|
||||||
lib.nameValuePair "musicomp-jobs-${name}" {
|
lib.nameValuePair "musicomp-jobs-${name}" {
|
||||||
wantedBy = ["multi-user.target"];
|
|
||||||
restartIfChanged = false;
|
restartIfChanged = false;
|
||||||
|
# TODO
|
||||||
|
wants = ["network-online.target"];
|
||||||
|
after = ["network-online.target"];
|
||||||
|
|
||||||
script = ''
|
script = ''
|
||||||
${lib.optionalString job.inhibitsSleep ''
|
${lib.optionalString job.inhibitsSleep ''
|
||||||
|
|
Loading…
Reference in a new issue