toggled unpackerr

This commit is contained in:
2024-08-25 11:36:24 -06:00
parent b85aaff840
commit 7ca323426a
4 changed files with 11 additions and 3 deletions

View File

@@ -28,8 +28,13 @@ let
ps.schedule
] ++ [ bencodepy ]);
in {
options.my.servers.qbittorrent.enable = lib.mkEnableOption "enable";
options.my.servers = {
qbittorrent.enable = lib.mkEnableOption "enable";
unpackerr.enable = lib.mkEnableOption "enable";
};
config = lib.mkIf config.my.servers.qbittorrent.enable {
home-manager.users.jawz.xdg.configFile."unpackerr.conf".source =
lib.mkIf config.my.servers.unpackerr.enable ../../dotfiles/unpackerr.conf;
systemd = {
packages = [ pkgs.qbittorrent-nox ];
services = {
@@ -53,8 +58,8 @@ in {
"${qbit_manage_env}/bin/python ${env}/qbit_manage.py -r -c ${env}/config.yml";
};
};
unpackerr = {
enable = false;
unpackerr = lib.mkIf config.my.servers.unpackerr.enable {
enable = true;
restartIfChanged = true;
description = "Run unpackerr";
wantedBy = [ "default.target" ];