qbit_manage fix
This commit is contained in:
@@ -52,6 +52,18 @@ in
|
|||||||
config = lib.mkIf (config.my.servers.qbittorrent.enable && config.my.secureHost) {
|
config = lib.mkIf (config.my.servers.qbittorrent.enable && config.my.secureHost) {
|
||||||
my.network.firewall.additionalPorts = [ config.my.servers.qbittorrent.port ];
|
my.network.firewall.additionalPorts = [ config.my.servers.qbittorrent.port ];
|
||||||
home-manager.users.jawz.xdg.dataFile.vuetorrent.source = vuetorrent;
|
home-manager.users.jawz.xdg.dataFile.vuetorrent.source = vuetorrent;
|
||||||
|
home-manager.users.jawz.imports = [
|
||||||
|
({ lib, ... }: {
|
||||||
|
home.activation.qbittorrentAutorunCommand = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||||
|
conf=/home/jawz/.config/qBittorrent/qBittorrent.conf
|
||||||
|
if [ -f "$conf" ]; then
|
||||||
|
sed -i \
|
||||||
|
's|^program=.*$|program=${torrentCompletionScript} %F|' \
|
||||||
|
"$conf"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
];
|
||||||
sops.secrets =
|
sops.secrets =
|
||||||
let
|
let
|
||||||
mkQbitSecret = file: mode: {
|
mkQbitSecret = file: mode: {
|
||||||
@@ -89,8 +101,8 @@ in
|
|||||||
description = "Tidy up my torrents";
|
description = "Tidy up my torrents";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Restart = "on-failure";
|
Type = "oneshot";
|
||||||
RestartSec = 30;
|
TimeoutStartSec = "5min";
|
||||||
ExecStart = "${qbit_manageEnv}/bin/python ${qbit_manage}/qbit_manage.py -r -c /home/jawz/.config/qbit_manage/config.yml";
|
ExecStart = "${qbit_manageEnv}/bin/python ${qbit_manage}/qbit_manage.py -r -c /home/jawz/.config/qbit_manage/config.yml";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user