nixos: services: remove pyload
The package and the module have been removed upstream. I do not have the will to package the enormous V8-based missing dependency (`mini-racer`), so let's remove the module entirely. I didn't use it much anymore anyway.
This commit is contained in:
parent
1c7032cb5b
commit
efda7de012
2 changed files with 0 additions and 73 deletions
|
|
@ -31,7 +31,6 @@
|
||||||
./podgrab
|
./podgrab
|
||||||
./postgresql
|
./postgresql
|
||||||
./postgresql-backup
|
./postgresql-backup
|
||||||
./pyload
|
|
||||||
./quassel
|
./quassel
|
||||||
./rss-bridge
|
./rss-bridge
|
||||||
./sabnzbd
|
./sabnzbd
|
||||||
|
|
|
||||||
|
|
@ -1,72 +0,0 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.my.services.pyload;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.my.services.pyload = with lib; {
|
|
||||||
enable = mkEnableOption "pyload download manager";
|
|
||||||
|
|
||||||
credentialsFile = mkOption {
|
|
||||||
type = types.path;
|
|
||||||
example = "/run/secrets/pyload-credentials.env";
|
|
||||||
description = "pyload credentials";
|
|
||||||
};
|
|
||||||
|
|
||||||
downloadDirectory = mkOption {
|
|
||||||
type = types.str;
|
|
||||||
default = "/data/downloads/pyload";
|
|
||||||
example = "/var/lib/pyload/download";
|
|
||||||
description = "Download directory";
|
|
||||||
};
|
|
||||||
|
|
||||||
port = mkOption {
|
|
||||||
type = types.port;
|
|
||||||
default = 9093;
|
|
||||||
example = 8080;
|
|
||||||
description = "Internal port for webui";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
|
||||||
services.pyload = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
# Listening on `localhost` leads to 502 with the reverse proxy...
|
|
||||||
listenAddress = "127.0.0.1";
|
|
||||||
|
|
||||||
inherit (cfg)
|
|
||||||
credentialsFile
|
|
||||||
downloadDirectory
|
|
||||||
port
|
|
||||||
;
|
|
||||||
|
|
||||||
# Use media group when downloading files
|
|
||||||
group = "media";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Set-up media group
|
|
||||||
users.groups.media = { };
|
|
||||||
|
|
||||||
my.services.nginx.virtualHosts = {
|
|
||||||
pyload = {
|
|
||||||
inherit (cfg) port;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.fail2ban.jails = {
|
|
||||||
pyload = ''
|
|
||||||
enabled = true
|
|
||||||
filter = pyload
|
|
||||||
port = http,https
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.etc = {
|
|
||||||
"fail2ban/filter.d/pyload.conf".text = ''
|
|
||||||
[Definition]
|
|
||||||
failregex = ^.*Login failed for user '<F-USER>.*</F-USER>' \[CLIENT: <HOST>\]$
|
|
||||||
journalmatch = _SYSTEMD_UNIT=pyload.service
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue