diff --git a/configuration.nix b/configuration.nix index ae67c8e..9a51528 100644 --- a/configuration.nix +++ b/configuration.nix @@ -9,6 +9,7 @@ ./gitlab-runner.nix ./monitoring.nix ./net.nix + ./nfs.nix ./overlays.nix ./slurm.nix ./ssh.nix diff --git a/nfs.nix b/nfs.nix new file mode 100644 index 0000000..affb304 --- /dev/null +++ b/nfs.nix @@ -0,0 +1,9 @@ +{ ... }: + +{ + services.nfs.server.enable = true; + services.nfs.server.exports = '' + /nix 10.0.40.0/24(ro,sync,no_subtree_check,root_squash) + ''; + networking.firewall.allowedTCPPorts = [ 2049 ]; +}