fuck qbit-manage

This commit is contained in:
Danilo Reyes 2025-05-31 19:52:21 -06:00
parent d466d4091a
commit 0c1bc0f324

View File

@ -48,8 +48,10 @@ in
config = lib.mkIf config.my.servers.qbittorrent.enable { config = lib.mkIf config.my.servers.qbittorrent.enable {
home-manager.users.jawz = { home-manager.users.jawz = {
home.activation.installVueTorrent = lib.mkAfter '' home.activation.installVueTorrent = lib.mkAfter ''
mkdir -p "$HOME/.config/vuetorrent" vuedir="$HOME/.local/share/vuetorrent"
cp -rT "${vuetorrent}" "$HOME/.local/share/vuetorrent" command rm -rf "$vuedir"
mkdir -p "$vuedir"
cp -rT "${vuetorrent}" "$vuedir"
''; '';
xdg.configFile."unpackerr.conf" = lib.mkIf config.my.servers.unpackerr.enable { xdg.configFile."unpackerr.conf" = lib.mkIf config.my.servers.unpackerr.enable {
source = ../../dotfiles/unpackerr.conf; source = ../../dotfiles/unpackerr.conf;
@ -70,7 +72,7 @@ in
"certificates/qbit_key" = mkQbitSecret "server.key" "0600"; "certificates/qbit_key" = mkQbitSecret "server.key" "0600";
}; };
systemd = { systemd = {
packages = [ pkgs.qbittorrent-enhanced-nox ]; packages = [ pkgs.qbittorrent-nox ];
services = { services = {
"qbittorrent-nox@jawz" = { "qbittorrent-nox@jawz" = {
enable = true; enable = true;
@ -102,7 +104,9 @@ in
serviceConfig = { serviceConfig = {
Restart = "on-failure"; Restart = "on-failure";
RestartSec = 30; RestartSec = 30;
ExecStart = "${pkgs.unpackerr}/bin/unpackerr -c /home/jawz/.config/unpackerr.conf"; ExecStart = ''
${pkgs.unpackerr}/bin/unpackerr \
-c /home/jawz/.config/unpackerr.conf'';
}; };
}; };
}; };
@ -110,9 +114,7 @@ in
enable = true; enable = true;
description = "Tidy up my torrents"; description = "Tidy up my torrents";
wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
timerConfig = { timerConfig.OnCalendar = "*:0/10";
OnCalendar = "*:0/10";
};
}; };
}; };
}; };