diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-10-22 19:33:45 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-10-22 19:33:45 +0200 |
commit | ddcc8c65e30a9ca3b56e25466e749cb100b28510 (patch) | |
tree | 869c782c4e5874d4d353d3cd82af5b0e2dfe9a45 /hosts/vidhar/network/default.nix | |
parent | 0b7bd91465487426041c777a40de3be9f7407058 (diff) | |
download | nixos-ddcc8c65e30a9ca3b56e25466e749cb100b28510.tar nixos-ddcc8c65e30a9ca3b56e25466e749cb100b28510.tar.gz nixos-ddcc8c65e30a9ca3b56e25466e749cb100b28510.tar.bz2 nixos-ddcc8c65e30a9ca3b56e25466e749cb100b28510.tar.xz nixos-ddcc8c65e30a9ca3b56e25466e749cb100b28510.zip |
...
Diffstat (limited to 'hosts/vidhar/network/default.nix')
-rw-r--r-- | hosts/vidhar/network/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/hosts/vidhar/network/default.nix b/hosts/vidhar/network/default.nix index e69674f4..f19ea9cd 100644 --- a/hosts/vidhar/network/default.nix +++ b/hosts/vidhar/network/default.nix | |||
@@ -1,4 +1,5 @@ | |||
1 | { pkgs, ... }: | 1 | { pkgs, ... }: |
2 | |||
2 | { | 3 | { |
3 | imports = [ ./dsl.nix ./bifrost ./dhcp ]; | 4 | imports = [ ./dsl.nix ./bifrost ./dhcp ]; |
4 | 5 | ||
@@ -69,5 +70,30 @@ | |||
69 | networkConfig.LinkLocalAddressing = "no"; | 70 | networkConfig.LinkLocalAddressing = "no"; |
70 | }; | 71 | }; |
71 | }; | 72 | }; |
73 | |||
74 | services.nfs.server = { | ||
75 | enable = true; | ||
76 | createMountPoints = true; | ||
77 | |||
78 | statdPort = 4000; | ||
79 | lockdPort = 4001; | ||
80 | mountdPort = 4002; | ||
81 | |||
82 | extraNfsdConfig = '' | ||
83 | vers3=off | ||
84 | ''; | ||
85 | |||
86 | exports = '' | ||
87 | /srv/nfs 10.141.0.0/24(ro,async,root_squash,fsid=0) 2a03:4000:52:ada:1::/80(ro,async,root_squash,fsid=0) | ||
88 | /srv/nfs/nix-store 10.141.0.0/24(ro,async,root_squash) 2a03:4000:52:ada:1::/80(ro,async,root_squash) | ||
89 | ''; | ||
90 | }; | ||
91 | |||
92 | fileSystems = { | ||
93 | "/srv/nfs/nix-store" = { | ||
94 | device = "/nix/store"; | ||
95 | options = [ "bind" ]; | ||
96 | }; | ||
97 | }; | ||
72 | }; | 98 | }; |
73 | } | 99 | } |