Moved some files
This commit is contained in:
parent
863438fb14
commit
4e17989a59
5 changed files with 0 additions and 183 deletions
|
|
@ -1,29 +0,0 @@
|
|||
# qBittorrent service activation
|
||||
#
|
||||
# The shell script 'fixdlperms' is also created and should be added to the
|
||||
# "Run external program on finished" section with the full path:
|
||||
# /run/current-system/sw/bin/fixdlperms
|
||||
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
downloadDir = "/data/multimedia/downloads";
|
||||
fixDownloadPerms = pkgs.writeShellScriptBin "fixdlperms" ''
|
||||
find ${downloadDir} -type d -exec chmod 2775 {} +
|
||||
find ${downloadDir} -type f -exec chmod 0664 {} +
|
||||
'';
|
||||
in
|
||||
{
|
||||
services.qbittorrent = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
dataDir = "/srv/qbittorrent";
|
||||
port = 58080;
|
||||
user = "qbittorrent";
|
||||
};
|
||||
|
||||
# Allow qbittorrent to save files in the multimedia share
|
||||
# users.users.qbittorrent.extraGroups = [ "multimedia" ];
|
||||
|
||||
environment.systemPackages = [ fixDownloadPerms ];
|
||||
}
|
||||
|
|
@ -61,7 +61,6 @@ in
|
|||
];
|
||||
nginx = {
|
||||
enable = true;
|
||||
# exposeInsecureRPC2mount = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue