flexget service: create service module - backport to 16.03#14262
flexget service: create service module - backport to 16.03#14262joachifm merged 1 commit intoNixOS:release-16.03from
Conversation
This module adds support for defining a flexget service. Due to flexget insisting on being able to write all over where it finds its configuration file, we use a ExecStartPre hook to copy the generated configuration file into place under the user's home. It's fairly ugly and I'm very open to suggestions
|
By analyzing the blame information on this pull request, we identified @edolstra, @bjornfor and @offlinehacker to be potential reviewers |
| timerConfig = { | ||
| OnBootSec = "5m"; | ||
| OnUnitInactiveSec = cfg.interval; | ||
| Unit = "flexget-runner.service"; |
There was a problem hiding this comment.
The timer Unit defaults to the service of the same name, so this is strictly unnecessary, but I guess it never hurts to be explicit
|
This looks good to me. Copying the configuration file is a sensible approach, IMO. |
|
One alternative to copying into the homedir is to copy the configuration file into a volatile location, like |
|
Merging, given the lack of objections. |
|
Ach, I realized this was opened against the wrong branch. |
|
Please always use master or staging unless you're backporting something. |
|
Sorry about. Do you need me to rebase? |
|
Yeah, just rebase onto master and open a new PR. |
|
@joachifm , any chance we can get this into 16.03? Nothing depends on it so the impact should be limited. |
|
Sounds reasonable to me. Please open a PR against |
flexget: create nixos service module
This module adds support for defining a flexget service.
Due to flexget insisting on being able to write all over where it finds its configuration file, we use a ExecStartPre hook to copy the generated configuration file into place under the user's home.
It's fairly ugly and I'm very open to suggestions.
Things done:
nix-build --option build-use-chroot trueor nix.useChroot on NixOS)nix-shell -p nox --run "nox-review wip"./result/bin/)