From 95a90109db89f8acd9eec10788ff1f0486a7f21d Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Sun, 22 Mar 2026 21:32:59 -0400 Subject: [PATCH] mounts --- hosts/hl-bigbox2.nix | 1 + modules/network-drives.nix | 23 ++++++++++++++++------- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/hosts/hl-bigbox2.nix b/hosts/hl-bigbox2.nix index f173401..f86d8dc 100644 --- a/hosts/hl-bigbox2.nix +++ b/hosts/hl-bigbox2.nix @@ -18,6 +18,7 @@ in server.exporters.enable = true; networkDrives = { enable = true; + bigBox2.enable = false; }; }; # services.nix-serve = { diff --git a/modules/network-drives.nix b/modules/network-drives.nix index 89c6835..a64074b 100644 --- a/modules/network-drives.nix +++ b/modules/network-drives.nix @@ -4,10 +4,13 @@ }: let cfg = config.skyg.networkDrives; - makeCommonOption = {defaultHost, enabledByDefault ? true} : lib.mkOption { + makeCommonOption = { + defaultHost, + enabledByDefault ? true + } : lib.mkOption { type = lib.types.submodule { options = { - enabled = lib.mkOption { + enable = lib.mkOption { type = lib.types.bool; default = enabledByDefault; }; @@ -18,7 +21,7 @@ let }; }; default = { - enabled = enabledByDefault; + enable = enabledByDefault; host = defaultHost; }; }; @@ -49,28 +52,34 @@ in }; }; config = lib.mkIf cfg.enable { - fileSystems."/torrents" = lib.mkIf cfg.tnas1.enabled { + fileSystems."/homelab/tnas1/torrents" = lib.mkIf cfg.tnas1.enable { device = "${cfg.tnas1.host}:/mnt/EightTerra/DownloadedTorrents"; fsType = "nfs"; options = cfg.options; }; - fileSystems."/mnt/EightTerra/k3s-cluster" = lib.mkIf cfg.tnas1.enabled { + fileSystems."/homelab/tnas1/EightTerra/k3s-cluster" = lib.mkIf cfg.tnas1.enable { device = "${cfg.tnas1.host}:/mnt/EightTerra/k3s-cluster"; fsType = "nfs"; options = cfg.options; }; - fileSystems."/mnt/OneT/NVR" = lib.mkIf cfg.tnas1.enabled { + fileSystems."/homelab/tnas1/OneT/NVR" = lib.mkIf cfg.tnas1.enable { device = "${cfg.tnas1.host}:/mnt/OneT/NVR"; fsType = "nfs"; options = cfg.options; }; - fileSystems."/mnt/terra1/Data/apps" = lib.mkIf cfg.terra1.enabled { + fileSystems."/homelab/terra1/Data/apps" = lib.mkIf cfg.terra1.enable { device = "${cfg.terra1.host}:/mnt/Data/apps"; fsType = "nfs"; options = cfg.options; }; + + fileSystems."/homelab/bigbox2/data/fourTerra" = lib.mkIf cfg.bigBox2.enable { + device = "${cfg.terra1.host}:/data/fourTerra"; + fsType = "nfs"; + options = cfg.options; + }; }; }