nixos/hosts/common/optional/fileserver-nfs-mount.nix

18 lines
224 B
Nix

{...}:
{
fileSystems."/mnt" = {
device = "/dev/vdb";
fsType = "ext4";
options = [ ];
};
services.nfs.server = {
enable = true;
exports = ''
/mnt/ *(ro,insecure,all_squash)
'';
};
}