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

18 lines
224 B
Nix
Raw Normal View History

2024-05-15 21:46:48 +01:00
{...}:
{
fileSystems."/mnt" = {
device = "/dev/vdb";
fsType = "ext4";
options = [ ];
};
services.nfs.server = {
enable = true;
exports = ''
/mnt/ *(ro,insecure,all_squash)
'';
};
}