lkjasdlkajsdlkj

This commit is contained in:
Peder Bergebakken Sundt 2024-09-29 17:31:39 +02:00
parent f34730bd54
commit 9a573ca719
2 changed files with 5 additions and 1 deletions

View File

@ -28,11 +28,13 @@
#services.zfs.trim.enable = true; #services.zfs.trim.enable = true;
# the `sharenfs` property generates /etc/exports.d/zfs.exports file, automatically processed by NFS # 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="-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="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;
# https://wiki.nixos.org/wiki/NFS
# TODO: move to common-nfs-server.nix # TODO: move to common-nfs-server.nix
services.nfs.server = { services.nfs.server = {
# fixed rpc.statd port; for firewall # fixed rpc.statd port; for firewall

View File

@ -3,6 +3,8 @@
# TODO: wireguard # TODO: wireguard
#boot.kernelParams = [ "nfs.nfs4_disable_idmapping=0" "nfsd.nfs4_disable_idmapping=0" ]; #boot.kernelParams = [ "nfs.nfs4_disable_idmapping=0" "nfsd.nfs4_disable_idmapping=0" ];
# https://wiki.nixos.org/wiki/NFS
fileSystems = let fileSystems = let
mkMount = mountpoint: server: subdir: { mkMount = mountpoint: server: subdir: {
"${mountpoint}${subdir}" = { "${mountpoint}${subdir}" = {