added Aphelion nfs_server
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -74,6 +74,15 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
"10-sharepoint-nfs" = {
|
||||
"/share/nixos-1" = {
|
||||
d = {
|
||||
user = "nobody";
|
||||
group = "nogroup";
|
||||
mode = "0770";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
@@ -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 ];
|
||||
}
|
||||
Reference in New Issue
Block a user