From 8fe301203c82a436ae45c27d93011539e6e4798e Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 6 Apr 2023 13:57:32 +0200 Subject: [PATCH] Export nix store over nfs --- configuration.nix | 1 + nfs.nix | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 nfs.nix 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 ]; +}