added Aphelion nfs_server

This commit is contained in:
yaroslav
2025-06-10 15:51:08 +03:00
parent dc5678ae33
commit 9f5099776b
3 changed files with 19 additions and 0 deletions
+1
View File
@@ -61,6 +61,7 @@
./hosts/Aphelion/hardware-Aphelion.nix
./hosts/Aphelion/nvidia.nix
./hosts/Aphelion/sunshine.nix
./hosts/Aphelion/nfs.nix
./desktop/gnome.nix
./home/yaroslav/steam.nix
home-manager.nixosModules.home-manager
+9
View File
@@ -74,6 +74,15 @@
};
};
};
"10-sharepoint-nfs" = {
"/share/nixos-1" = {
d = {
user = "nobody";
group = "nogroup";
mode = "0770";
};
};
};
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+9
View File
@@ -0,0 +1,9 @@
{ ... }:
{
services.nfs.server.enable = true;
services.nfs.server.exports = ''
/share 192.168.1.0/24(rw)
/share/nixos-1 192.168.1.0/24(rw)
'';
networking.firewall.allowedTCPPorts = [ 2049 ];
}