fix: Store torrents on NAS
This commit is contained in:
@@ -35,10 +35,10 @@ in {
|
||||
];
|
||||
|
||||
# Mount our NAS's 'media' share.
|
||||
fileSystems."/persist/media/library" = {
|
||||
fileSystems."/media" = {
|
||||
# DNS is seemingly unavailable to the mount service.
|
||||
device = "//192.168.68.62/media";
|
||||
mountPoint = "/persist/media/library";
|
||||
mountPoint = "/media";
|
||||
fsType = "cifs";
|
||||
options = [
|
||||
"vers=2.0"
|
||||
@@ -72,22 +72,22 @@ in {
|
||||
requiredBy = [ "wg.service" ];
|
||||
};
|
||||
|
||||
systemd.services.test-mullvad-connection = {
|
||||
script = ''
|
||||
${pkgs.curl}/bin/curl -s https://am.i.mullvad.net/connected >&2
|
||||
${pkgs.curl}/bin/curl -s https://am.i.mullvad.net/connected 2>/dev/null
|
||||
'';
|
||||
vpnconfinement = {
|
||||
enable = true;
|
||||
vpnnamespace = "wg";
|
||||
};
|
||||
};
|
||||
# systemd.services.test-mullvad-connection = {
|
||||
# script = ''
|
||||
# ${pkgs.curl}/bin/curl -s https://am.i.mullvad.net/connected >&2
|
||||
# ${pkgs.curl}/bin/curl -s https://am.i.mullvad.net/connected 2>/dev/null
|
||||
# '';
|
||||
# vpnconfinement = {
|
||||
# enable = true;
|
||||
# vpnnamespace = "wg";
|
||||
# };
|
||||
# };
|
||||
|
||||
nixarr = {
|
||||
enable = true;
|
||||
# The default value is overly anti-FHS.
|
||||
stateDir = "/var/lib/nixarr";
|
||||
mediaDir = "/persist/media";
|
||||
mediaDir = "/media";
|
||||
vpn = {
|
||||
enable = true;
|
||||
wgConf = "${config.nixarr.stateDir}/wg.conf";
|
||||
|
||||
Reference in New Issue
Block a user