No dns mullvad
This commit is contained in:
parent
c48405716c
commit
fb8cfc7ad7
3 changed files with 29 additions and 4 deletions
BIN
keys/mullvad
BIN
keys/mullvad
Binary file not shown.
|
|
@ -29,11 +29,17 @@ in
|
|||
group = mediaGroup;
|
||||
settings = {
|
||||
incomplete-dir-enabled = true;
|
||||
incomplete-dir = "/media/torrents/.incomplete";
|
||||
download-dir = "/mnt/sbox/torrents";
|
||||
incomplete-dir = "/mnt/sbox//torrents/.incomplete";
|
||||
blocklist-enabled = true;
|
||||
blocklist-url = "https://github.com/Naunter/BT_BlockLists/raw/master/bt_blocklists.gz";
|
||||
utp-enabled = true;
|
||||
bind-address-ipv4 = "10.64.108.193";
|
||||
rpc-port = 3027;
|
||||
rpc-whitelist-enabled = false;
|
||||
rpc-whitelist = "192.168.1.*,127.0.0.1,localhost,10.100.0.*";
|
||||
rpc-authentication-required = false;
|
||||
rpc-bind-address = "0.0.0.0"; #Bind to own IP
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -45,12 +51,18 @@ in
|
|||
openFirewall = false;
|
||||
};
|
||||
|
||||
services.sonarr = {
|
||||
enable = true;
|
||||
group = mediaGroup;
|
||||
openFirewall = false;
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.flood-for-transmission
|
||||
];
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /media/torrents 0775 torrenter media -"
|
||||
"d /media/torrents/.incomplete 0775 torrenter media -"
|
||||
"d /mnt/sbox/torrents 0775 torrenter media -"
|
||||
"d /mnt/sbox/torrents/.incomplete 0775 torrenter media -"
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
environment.systemPackages = [ pkgs.rclone ];
|
||||
environment.systemPackages = [ pkgs.rclone pkgs.samba ];
|
||||
environment.etc."rclone-mnt.conf".text = ''
|
||||
[myremote]
|
||||
type = sftp
|
||||
|
|
@ -20,4 +20,17 @@
|
|||
"config=/etc/rclone-mnt.conf"
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
fileSystems."/mnt/sbox2" = {
|
||||
device = "//u504615.your-storagebox.de/backup";
|
||||
fsType = "cifs";
|
||||
options =
|
||||
let
|
||||
# this line prevents hanging on network split
|
||||
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
|
||||
|
||||
in
|
||||
[ "${automount_opts},credentials=/etc/nixos/smb-secrets" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue