feat: Update qbittorrent module
This commit is contained in:
parent
aecd777032
commit
ae312d307f
4 changed files with 18 additions and 14 deletions
14
flake.lock
generated
14
flake.lock
generated
|
@ -60,11 +60,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742170255,
|
"lastModified": 1742423846,
|
||||||
"narHash": "sha256-vleqYAfPdZWwoKIrzAb7ZFOhTH7DF9r7DoBPbzh+u30=",
|
"narHash": "sha256-YyfKEZQUsuBlCAvdUxGMZB7t5+LDcDesApxnE0ajsB4=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "9c9efe8a10ee222f60ded26f253a4dd3f62a426c",
|
"rev": "3d3f6053dd0e2a100d38786c2edf8c7b8cc4320d",
|
||||||
"revCount": 139,
|
"revCount": 140,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://forge.catnip.ee/batteredbunny/common.nix"
|
"url": "https://forge.catnip.ee/batteredbunny/common.nix"
|
||||||
},
|
},
|
||||||
|
@ -332,11 +332,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_4": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742069588,
|
"lastModified": 1742288794,
|
||||||
"narHash": "sha256-C7jVfohcGzdZRF6DO+ybyG/sqpo1h6bZi9T56sxLy+k=",
|
"narHash": "sha256-Txwa5uO+qpQXrNG4eumPSD+hHzzYi/CdaM80M9XRLCo=",
|
||||||
"owner": "Nixos",
|
"owner": "Nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c80f6a7e10b39afcc1894e02ef785b1ad0b0d7e5",
|
"rev": "b6eaf97c6960d97350c584de1b6dcff03c9daf42",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
services.cross-seed = {
|
services.cross-seed = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
settingsFile = "/etc/secrets/cross-seed.json";
|
settingsFile = "/etc/secrets/cross-seed.json";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
torrentDir = "/home/owo/.local/share/qBittorrent/BT_backup";
|
torrentDir = "/var/lib/qBittorrent/qBittorrent/data/BT_backup";
|
||||||
action = "inject";
|
action = "inject";
|
||||||
duplicateCategories = true;
|
duplicateCategories = true;
|
||||||
searchTimeout = "2 minutes";
|
searchTimeout = "2 minutes";
|
||||||
|
@ -15,6 +15,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users."cross-seed".extraGroups = [
|
users.users."cross-seed".extraGroups = [
|
||||||
"users" # qbittorrent runs under users becuase i have not migrated it
|
config.services.qbittorrent-nox.group
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,10 +7,11 @@
|
||||||
qbittorrent-nox = {
|
qbittorrent-nox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
user = "owo";
|
|
||||||
group = "users";
|
|
||||||
webuiPort = 4010;
|
webuiPort = 4010;
|
||||||
torrentingPort = 43125;
|
torrentingPort = 43125;
|
||||||
|
extraArgs = [
|
||||||
|
"--confirm-legal-notice"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
caddy.virtualHosts."http://qbittorrent.internal".extraConfig = ''
|
caddy.virtualHosts."http://qbittorrent.internal".extraConfig = ''
|
||||||
|
@ -19,8 +20,7 @@
|
||||||
'';
|
'';
|
||||||
|
|
||||||
borgbackup.jobs."borgbase".paths = [
|
borgbackup.jobs."borgbase".paths = [
|
||||||
"/home/owo/.config/qBittorrent"
|
config.services.qbittorrent-nox.profileDir
|
||||||
"/home/owo/.local/share/qBittorrent"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,11 +50,15 @@ sudo setfacl -m u:lidarr:rx $DRIVE/media
|
||||||
sudo setfacl -m u:lidarr:rwx $DRIVE/media/music
|
sudo setfacl -m u:lidarr:rwx $DRIVE/media/music
|
||||||
sudo setfacl -m u:lidarr:rwx -R $DRIVE/media/music
|
sudo setfacl -m u:lidarr:rwx -R $DRIVE/media/music
|
||||||
|
|
||||||
|
# Qbittorrent
|
||||||
|
sudo setfacl -m u:qbittorrent:rx $DRIVE
|
||||||
|
|
||||||
echo Creating $DRIVE/torrents
|
echo Creating $DRIVE/torrents
|
||||||
mkdir -p $DRIVE/torrents
|
mkdir -p $DRIVE/torrents
|
||||||
sudo setfacl -m u:radarr:rx $DRIVE/torrents
|
sudo setfacl -m u:radarr:rx $DRIVE/torrents
|
||||||
sudo setfacl -m u:sonarr:rx $DRIVE/torrents
|
sudo setfacl -m u:sonarr:rx $DRIVE/torrents
|
||||||
sudo setfacl -m u:lidarr:rx $DRIVE/torrents
|
sudo setfacl -m u:lidarr:rx $DRIVE/torrents
|
||||||
|
sudo setfacl -m u:qbittorrent:rwx $DRIVE/torrents
|
||||||
|
|
||||||
# Readers
|
# Readers
|
||||||
sudo setfacl -m u:caddy:rx $DRIVE
|
sudo setfacl -m u:caddy:rx $DRIVE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue