diff options
| -rw-r--r-- | machines/corsac/default.nix | 3 | ||||
| -rw-r--r-- | modules/nfs.nix | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/machines/corsac/default.nix b/machines/corsac/default.nix index 956f7a7..02430e8 100644 --- a/machines/corsac/default.nix +++ b/machines/corsac/default.nix @@ -6,8 +6,9 @@ ./hardware.nix ./devices.nix - + ../../modules/dns.nix + ../../modules/nfs.nix ]; system.stateVersion = "24.05"; diff --git a/modules/nfs.nix b/modules/nfs.nix new file mode 100644 index 0000000..b0895e2 --- /dev/null +++ b/modules/nfs.nix @@ -0,0 +1,11 @@ +{ ... }: + +{ + services.nfs.server = { + enable = true; + exports = '' + /srv/nfs *(rw,fsid=root) + /srv/nfs/bag *(rw,sync) + ''; + }; +} |
