will nfs work soon?
This commit is contained in:
parent
ed8cc82627
commit
6bb8dc8567
|
@ -32,4 +32,19 @@
|
||||||
# # zfs set sharenfs="ro=192.168.1.0/24,all_squash,anonuid=70,anongid=70" Meconium
|
# # zfs set sharenfs="ro=192.168.1.0/24,all_squash,anonuid=70,anongid=70" Meconium
|
||||||
# # zfs set sharenfs="rw=192.168.1.0/24" Meconium
|
# # zfs set sharenfs="rw=192.168.1.0/24" Meconium
|
||||||
services.nfs.server.enable = lib.mkDefault true;
|
services.nfs.server.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
# TODO: move to common-nfs-server.nix
|
||||||
|
services.nfs.server = {
|
||||||
|
# fixed rpc.statd port; for firewall
|
||||||
|
lockdPort = 4001;
|
||||||
|
mountdPort = 4002;
|
||||||
|
statdPort = 4000;
|
||||||
|
extraNfsdConfig = '''';
|
||||||
|
};
|
||||||
|
networking.firewall = {
|
||||||
|
# for NFSv3; view with `rpcinfo -p`
|
||||||
|
allowedTCPPorts = [ 111 2049 4000 4001 4002 ]; # 20048
|
||||||
|
allowedUDPPorts = [ 111 2049 4000 4001 4002 ]; # 20048
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
joinSets = sets: builtins.foldl' (l: r: l // r) {} sets;
|
joinSets = sets: builtins.foldl' (l: r: l // r) {} sets;
|
||||||
in joinSets (
|
in joinSets (
|
||||||
# TODO: depend on nox.networking.interfaces.eno1.ipv4.addresses
|
# TODO: depend on nox.networking.interfaces.eno1.ipv4.addresses
|
||||||
(map (mkMount "/mnt/meconium" "192.168.1.9:/Meconium" ) [
|
(map (mkMount "/mnt/meconium" "192.168.1.8:/Meconium" ) [
|
||||||
""
|
""
|
||||||
"/backups"
|
"/backups"
|
||||||
"/backups/rocm"
|
"/backups/rocm"
|
||||||
|
|
Loading…
Reference in New Issue