diff --git a/flake.nix b/flake.nix index 241f576..c420eb9 100644 --- a/flake.nix +++ b/flake.nix @@ -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 diff --git a/hosts/Aphelion/hardware-Aphelion.nix b/hosts/Aphelion/hardware-Aphelion.nix index ef29047..cb5cc97 100644 --- a/hosts/Aphelion/hardware-Aphelion.nix +++ b/hosts/Aphelion/hardware-Aphelion.nix @@ -74,6 +74,15 @@ }; }; }; + "10-sharepoint-nfs" = { + "/share/nixos-1" = { + d = { + user = "nobody"; + group = "nogroup"; + mode = "0770"; + }; + }; + }; }; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; diff --git a/hosts/Aphelion/nfs.nix b/hosts/Aphelion/nfs.nix new file mode 100644 index 0000000..d6f814d --- /dev/null +++ b/hosts/Aphelion/nfs.nix @@ -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 ]; +}