nixos-configs/devices/servivi/modules/nfs.nix
matt1432 6dc386046b
All checks were successful
Discord / discord commits (push) Has been skipped
feat(servivi): add headscale nfs share
2024-01-23 23:23:56 -05:00

14 lines
702 B
Nix

# TODO: move this to NAS?
{...}: {
services.nfs.server = {
enable = true;
createMountPoints = true;
exports = ''
/export 10.0.0.244(rw,crossmnt,fsid=0,no_root_squash) 10.0.0.159(rw,crossmnt,fsid=0,no_root_squash) 100.64.0.8(rw,crossmnt,fsid=0,no_root_squash) 100.64.0.9(rw,crossmnt,fsid=0,no_root_squash)
/export/caddy 10.0.0.244(rw,nohide,no_root_squash) 10.0.0.159(rw,nohide,no_root_squash) 100.64.0.8(rw,nohide,no_root_squash) 100.64.0.9(rw,nohide,no_root_squash)
/export/headscale 10.0.0.244(rw,nohide,no_root_squash) 10.0.0.159(rw,nohide,no_root_squash) 100.64.0.8(rw,nohide,no_root_squash) 100.64.0.9(rw,nohide,no_root_squash)
'';
};
}