From 9a573ca7197a83e0955f7c57f5a4add207f2819a Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sun, 29 Sep 2024 17:31:39 +0200 Subject: [PATCH] lkjasdlkajsdlkj --- profiles/mounts/common-zfs.nix | 4 +++- profiles/mounts/meconium-nfs.nix | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/profiles/mounts/common-zfs.nix b/profiles/mounts/common-zfs.nix index 1d67300..cd41789 100644 --- a/profiles/mounts/common-zfs.nix +++ b/profiles/mounts/common-zfs.nix @@ -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 diff --git a/profiles/mounts/meconium-nfs.nix b/profiles/mounts/meconium-nfs.nix index 5303fc6..b423053 100644 --- a/profiles/mounts/meconium-nfs.nix +++ b/profiles/mounts/meconium-nfs.nix @@ -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}" = {