From b7129af5244d0a7119f89327af27e6daeccbdc2d Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sat, 22 Jun 2024 21:46:08 -0600 Subject: [PATCH] server nfs mount --- hosts/server/hardware-configuration.nix | 6 ++++++ hosts/workstation/hardware-configuration.nix | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/hosts/server/hardware-configuration.nix b/hosts/server/hardware-configuration.nix index 5b6f440..faefe65 100644 --- a/hosts/server/hardware-configuration.nix +++ b/hosts/server/hardware-configuration.nix @@ -130,6 +130,11 @@ options = [ "bind" ]; depends = [ "/mnt/pool" ]; }; + "/export/btrfs" = { + device = "/mnt/btrfs"; + options = [ "bind" ]; + depends = [ "/mnt/pool" ]; + }; }; services.nfs = { server = { @@ -138,6 +143,7 @@ /export workstation(rw,fsid=0,no_subtree_check) /export/jawz workstation(rw,nohide,insecure,no_subtree_check) /export/pool workstation(rw,nohide,insecure,no_subtree_check) + /export/btrfs workstation(rw,nohide,insecure,no_subtree_check) ''; }; }; diff --git a/hosts/workstation/hardware-configuration.nix b/hosts/workstation/hardware-configuration.nix index 5d8601d..d269491 100644 --- a/hosts/workstation/hardware-configuration.nix +++ b/hosts/workstation/hardware-configuration.nix @@ -76,8 +76,9 @@ "/mnt/games" = btrfsMount "games" // { }; "/mnt/miniserver/pool" = nfsMount "miniserver" "pool" // { }; "/mnt/miniserver/jawz" = nfsMount "miniserver" "jawz" // { }; - # "/mnt/server/pool" = nfsMount "server" "pool" // { }; - # "/mnt/server/jawz" = nfsMount "server" "jawz" // { }; + "/mnt/server/pool" = nfsMount "server" "pool" // { }; + "/mnt/server/jawz" = nfsMount "server" "jawz" // { }; + "/mnt/server/btrfs" = nfsMount "server" "btrfs" // { }; "/boot" = { device = "/dev/disk/by-uuid/ac6d349a-96b9-499e-9009-229efd7743a5"; fsType = "ext4";