add nfs share instead of sshfs
This commit is contained in:
@@ -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