fix: actually run the extra scripts
This commit is contained in:
parent
1300b7f6ec
commit
69cb8e9a3f
1 changed files with 7 additions and 1 deletions
|
@ -58,6 +58,8 @@
|
||||||
DATABASE = "database.db";
|
DATABASE = "database.db";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
service_name = script: lib.strings.sanitizeDerivationName("${cfg.user}@${script}");
|
||||||
|
|
||||||
# oneshot scripts to run
|
# oneshot scripts to run
|
||||||
serviceGenerator = mapAttrs' (script: time: nameValuePair (service_name script) {
|
serviceGenerator = mapAttrs' (script: time: nameValuePair (service_name script) {
|
||||||
description = "Service for ${desc} ${script}";
|
description = "Service for ${desc} ${script}";
|
||||||
|
@ -206,7 +208,11 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
} // serviceGenerator scripts;
|
||||||
|
|
||||||
|
# timers to run the above services
|
||||||
|
systemd.timers = timerGenerator scripts;
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue