commit 52bf7d85b0354f412a16912603792186b2ac453a
parent eb0d39496ab3f086a790c053c6f67ca1d10ff733
Author: breadcat <breadcat@users.noreply.github.com>
Date: Sun, 24 Aug 2025 12:24:35 +0100
NFS server as an include
Diffstat:
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/common/nfs-server.nix b/common/nfs-server.nix
@@ -0,0 +1,8 @@
+{
+ services.nfs.server = {
+ enable = true;
+ exports = ''
+ /tank 192.168.1.0/24(rw)
+ '';
+ };
+}
diff --git a/machines/ilias.nix b/machines/ilias.nix
@@ -24,6 +24,7 @@ in {
../common/garbage.nix
(import ../common/locale.nix {inherit pkgs timezone;})
../common/mount-drives.nix
+ ../common/nfs-server.nix
../common/packages.nix
(import ../common/restic.nix {inherit pkgs username;})
(import ../common/ssh-tunnel.nix {inherit config pkgs username domain sshport privatekey;})
@@ -70,12 +71,6 @@ in {
# Hostname
networking.hostName = "ilias"; # Define your hostname.
- # NFS server
- services.nfs.server = {
- enable = true;
- exports = ''
- /tank 192.168.1.0/24(rw)
- '';
};
# Firewall and NFS server ports
networking.firewall.enable = true;