nixos-server/modules/nfs.nix
2026-05-03 13:30:56 +02:00

15 lines
354 B
Nix

{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [ kubernetes-helm ];
fileSystems."/export" = {
device = "/kube-store";
options = [ "bind" ];
fsType = "none";
};
services.nfs.server.enable = true;
services.nfs.server.exports = ''
/export 10.0.0.0/24(rw,fsid=0,no_subtree_check,crossmnt,no_root_squash)
'';
}