ma fileleech: retab, use torrent

This commit is contained in:
makefu 2017-12-28 16:03:05 +01:00
parent 161c810b74
commit 14634592a6
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -25,13 +25,13 @@ in {
<stockholm/makefu>
<stockholm/makefu/2configs/tinc/retiolum.nix>
<stockholm/makefu/2configs/disable_v6.nix>
# <stockholm/makefu/2configs/torrent.nix>
<stockholm/makefu/2configs/torrent.nix>
<stockholm/makefu/2configs/fs/sda-crypto-root.nix>
#<stockholm/makefu/2configs/elchos/irc-token.nix>
<stockholm/makefu/2configs/elchos/log.nix>
<stockholm/makefu/2configs/elchos/search.nix>
<stockholm/makefu/2configs/elchos/stats.nix>
# <stockholm/makefu/2configs/elchos/log.nix>
# <stockholm/makefu/2configs/elchos/search.nix>
# <stockholm/makefu/2configs/elchos/stats.nix>
];
systemd.services.grafana.serviceConfig.LimitNOFILE=10032;
@ -60,7 +60,7 @@ in {
];
services.nginx.virtualHosts._download = {
default = true;
root = "/media/cryptX";
root = config.makefu.dl-dir;
extraConfig = ''
autoindex on;
'';
@ -80,10 +80,11 @@ in {
services.sabnzbd.enable = true;
systemd.services.sabnzbd.environment.SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
# TODO use users.motd and pam.services.sshd.showMotd
services.openssh.extraConfig = let banner = pkgs.writeText "openssh-banner" ''
Services:
ssh://download@fileleech - ssh via filebitch.shack
ftp://download@fileleech - access to /media/cryptX
ssh://download@fileleech - ssh via filebitch
ftp://download@fileleech - access to ${config.makefu.dl-dir}
http://fileleech:8112 - rutorrent
http://fileleech:8113 - pyload
https://fileleech:9090 - sabnzb
@ -121,10 +122,10 @@ in {
}
;
makefu.dl-dir = "/media/cryptX";
users.users.download = {
useDefaultShell = true;
# name = "download";
home = "/media/cryptX/";
# createHome = true;
openssh.authorizedKeys.keys = [
config.krebs.users.makefu.pubkey
@ -142,15 +143,19 @@ in {
parity = toMapper 7;
};
networking.nameservers = [ "8.8.8.8" ];
#networking.interfaces.enp6s0f0.ip4 = [{
# address = "151.217.173.20";
# prefixLength = 22;
#}];
#networking.defaultGateway = "151.217.172.1";
# SPF
networking.defaultGateway = "151.217.176.1";
networking.interfaces.enp6s0f0.ip4 = [{
address = "151.217.178.63";
prefixLength = 22;
}];
# Gigabit
networking.interfaces.enp8s0f1.ip4 = [{
address = "192.168.126.1";
prefixLength = 24;
}];
#interfaces.enp6s0f1.ip4 = [{
# address = external-ip;
# prefixLength = 22;