add nfs share instead of sshfs
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
./copyparty.nix
|
||||
./trilium.nix
|
||||
./actual.nix
|
||||
./nfs.nix
|
||||
];
|
||||
|
||||
boot.initrd.kernelModules = [ "usb_storage" ];
|
||||
@@ -65,6 +66,8 @@
|
||||
|
||||
53
|
||||
|
||||
2049 # nfs
|
||||
|
||||
5690 # testing for wizarr
|
||||
];
|
||||
|
||||
|
||||
@@ -107,5 +107,14 @@
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.copyparty = {
|
||||
serviceConfig = {
|
||||
IOSchedulingClass = "best-effort";
|
||||
IOSchedulingPriority = 7;
|
||||
|
||||
IOWeight = 25;
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 8086 ];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
{...}: {
|
||||
fileSystems = {
|
||||
"/exports/mediacenter" = {
|
||||
device = "/mnt/mediacenter";
|
||||
fsType = "none";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
# "/exports/jellyfin" = {
|
||||
# device = "/mnt/jellyfin";
|
||||
# fsType = "none";
|
||||
# options = [ "bind" ];
|
||||
# };
|
||||
};
|
||||
|
||||
services.nfs = let
|
||||
exports_config = n : {
|
||||
"192.168.1.12" = [ # thea
|
||||
"rw"
|
||||
"fsid=${n}"
|
||||
];
|
||||
};
|
||||
in {
|
||||
server = {
|
||||
enable = true;
|
||||
exports = {
|
||||
"/exports/jellyfin" = exports_config "1";
|
||||
"/exports/mediacenter" = exports_config "2";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user