diff --git a/ops/nixos/totoro/default.nix b/ops/nixos/totoro/default.nix index c2d5ce85cc..5f1c81f196 100644 --- a/ops/nixos/totoro/default.nix +++ b/ops/nixos/totoro/default.nix @@ -23,6 +23,7 @@ in { "/nix" = zfs "zboot/local/nix"; "/home" = zfs "tank/safe/home"; + "/export" = zfs "tank/safe/export"; "/boot" = { device = "/dev/disk/by-uuid/D178-4E19"; @@ -56,5 +57,15 @@ in { extraGroups = lib.mkAfter [ "libvirtd" ]; }; + # NFS + services.nfs.server = { + enable = true; + exports = '' + /export 192.168.1.0/24(rw,sync,nohide,no_subtree_check,no_root_squash,wdelay,fsid=0,insecure,crossmnt) + ''; + }; + networking.firewall.allowedTCPPorts = [ 111 2049 ]; + networking.firewall.allowedUDPPorts = [ 111 2049 ]; + system.stateVersion = "20.03"; }