Export nix store over nfs

This commit is contained in:
Rodrigo Arias 2023-04-06 13:57:32 +02:00
parent a813ea6561
commit 8fe301203c
2 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,7 @@
./gitlab-runner.nix
./monitoring.nix
./net.nix
./nfs.nix
./overlays.nix
./slurm.nix
./ssh.nix

9
nfs.nix Normal file
View File

@ -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 ];
}