totoro: add NFS

This commit is contained in:
Luke Granger-Brown 2020-07-04 19:36:38 +00:00
parent 279be2c2c3
commit 88fbb167c9

View file

@ -23,6 +23,7 @@ in {
"/nix" = zfs "zboot/local/nix"; "/nix" = zfs "zboot/local/nix";
"/home" = zfs "tank/safe/home"; "/home" = zfs "tank/safe/home";
"/export" = zfs "tank/safe/export";
"/boot" = { "/boot" = {
device = "/dev/disk/by-uuid/D178-4E19"; device = "/dev/disk/by-uuid/D178-4E19";
@ -56,5 +57,15 @@ in {
extraGroups = lib.mkAfter [ "libvirtd" ]; 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"; system.stateVersion = "20.03";
} }