Skip to content

Commit 0713ca5

Browse files
committed
Expose /srv over NFS on tailnet
1 parent fded0a2 commit 0713ca5

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

‎hosts/glyph/services/default.nix‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
imports = [
77
./avahi.nix
88
./filebrowser.nix
9+
./nfs.nix
910
./samba.nix
1011
./torrents.nix
1112
];

‎hosts/glyph/services/nfs.nix‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
config,
3+
pkgs,
4+
...
5+
}: {
6+
services.nfs.server = {
7+
enable = true;
8+
exports = let
9+
dir = "/srv";
10+
tailnetCIDR = "100.64.0.0/10";
11+
in ''
12+
${dir} ${tailnetCIDR}(rw,fsid=0,no_subtree_check,async)
13+
'';
14+
};
15+
}

0 commit comments

Comments
 (0)