lkjasdlkajsdlkj
This commit is contained in:
parent
f34730bd54
commit
9a573ca719
|
@ -28,11 +28,13 @@
|
|||
#services.zfs.trim.enable = true;
|
||||
|
||||
# the `sharenfs` property generates /etc/exports.d/zfs.exports file, automatically processed by NFS
|
||||
# https://man.archlinux.org/man/core/nfs-utils/exports.5.en
|
||||
# # zfs set sharenfs="-maproot=0:0 -network=192.168.1.0/24" Reidun
|
||||
# # 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;
|
||||
|
||||
# https://wiki.nixos.org/wiki/NFS
|
||||
# TODO: move to common-nfs-server.nix
|
||||
services.nfs.server = {
|
||||
# fixed rpc.statd port; for firewall
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
# TODO: wireguard
|
||||
#boot.kernelParams = [ "nfs.nfs4_disable_idmapping=0" "nfsd.nfs4_disable_idmapping=0" ];
|
||||
|
||||
# https://wiki.nixos.org/wiki/NFS
|
||||
|
||||
fileSystems = let
|
||||
mkMount = mountpoint: server: subdir: {
|
||||
"${mountpoint}${subdir}" = {
|
||||
|
|
Loading…
Reference in New Issue