Files
homelab/hosts/sin/nfs.nix
T
sin_serhao 76371b7211
analysis.yaml / perform flake analysis (push) Failing after 1m9s
deploy.yaml / build hive configuration (push) Failing after 30s
add nfs share instead of sshfs
2026-10-14 19:43:29 +02:00

32 lines
601 B
Nix

{...}: {
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";
};
};
};
}