summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/shar/configuration.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/hosts/shar/configuration.nix b/hosts/shar/configuration.nix
index be3e5db..ddee21e 100644
--- a/hosts/shar/configuration.nix
+++ b/hosts/shar/configuration.nix
@@ -131,6 +131,21 @@
programs.fish.enable = true;
+ services.tailscale = {
+ enable = true;
+ useRoutingFeatures = "server";
+ };
+
+ services.nfs.server = {
+ enable = true;
+
+ exports = ''
+ /tank/media 100.64.0.0/10(ro,async,no_subtree_check)
+ /tank/data 100.64.0.0/10(rw,async,no_subtree_check)
+ /tank/backups 100.64.0.0/10(rw,async,no_subtree_check)
+ '';
+ };
+
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];