ma 1 omo: add sabnzbd;
This commit is contained in:
parent
ff945f40b1
commit
c47c07d427
|
@ -30,7 +30,14 @@ in {
|
||||||
../3modules
|
../3modules
|
||||||
];
|
];
|
||||||
krebs.build.host = config.krebs.hosts.omo;
|
krebs.build.host = config.krebs.hosts.omo;
|
||||||
|
|
||||||
|
# copy config from <secrets/sabnzbd.ini> to /var/lib/sabnzbd/
|
||||||
|
services.sabnzbd.enable = true;
|
||||||
|
systemd.services.sabnzbd.environment.SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
|
||||||
|
|
||||||
|
# HDD Array stuff
|
||||||
services.smartd.devices = builtins.map (x: { device = x; }) allDisks;
|
services.smartd.devices = builtins.map (x: { device = x; }) allDisks;
|
||||||
|
|
||||||
makefu.snapraid = let
|
makefu.snapraid = let
|
||||||
toMapper = id: "/media/crypt${builtins.toString id}";
|
toMapper = id: "/media/crypt${builtins.toString id}";
|
||||||
in {
|
in {
|
||||||
|
@ -38,7 +45,6 @@ in {
|
||||||
disks = map toMapper [ 0 1 ];
|
disks = map toMapper [ 0 1 ];
|
||||||
parity = toMapper 2;
|
parity = toMapper 2;
|
||||||
};
|
};
|
||||||
# AMD E350
|
|
||||||
fileSystems = let
|
fileSystems = let
|
||||||
cryptMount = name:
|
cryptMount = name:
|
||||||
{ "/media/${name}" = { device = "/dev/mapper/${name}"; fsType = "xfs"; };};
|
{ "/media/${name}" = { device = "/dev/mapper/${name}"; fsType = "xfs"; };};
|
||||||
|
@ -56,6 +62,7 @@ in {
|
||||||
${pkgs.hdparm}/sbin/hdparm -B 127 ${disk}
|
${pkgs.hdparm}/sbin/hdparm -B 127 ${disk}
|
||||||
${pkgs.hdparm}/sbin/hdparm -y ${disk}
|
${pkgs.hdparm}/sbin/hdparm -y ${disk}
|
||||||
'') allDisks);
|
'') allDisks);
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
initrd.luks = {
|
initrd.luks = {
|
||||||
devices = let
|
devices = let
|
||||||
|
@ -87,10 +94,13 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedUDPPorts = [ 655 ];
|
networking.firewall.allowedUDPPorts = [ 655 ];
|
||||||
|
# 8080: sabnzbd
|
||||||
|
networking.firewall.allowedTCPPorts = [ 655 8080 ];
|
||||||
|
|
||||||
hardware.enableAllFirmware = true;
|
hardware.enableAllFirmware = true;
|
||||||
hardware.cpu.amd.updateMicrocode = true;
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
|
|
||||||
#zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
zramSwap.numDevices = 2;
|
zramSwap.numDevices = 2;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue