This commit is contained in:
ari committed 2024-12-25 12:52:05 -05:00
1 parent d055a2972d
commit b18b4a4453
12 files changed
+147 -97

No files matched your search

+10 -7
View File
@@ -2,40 +2,43 @@
, config
, ...
}:
with lib;
let
cfg = config.skyg.networkDrives;
in
{
options = {
skyg.networkDrives = {
enable = mkEnableOption
enable = lib.mkEnableOption
"Network Drives";
options = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ "defaults" ];
};
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
fileSystems."/torrents" = {
device = "tnas1.lab.internal:/mnt/EightTerra/DownloadedTorrents";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" ];
options = cfg.options;
};
fileSystems."/mnt/EightTerra/k3s-cluster" = {
device = "tnas1.lab.internal:/mnt/EightTerra/k3s-cluster";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" ];
options = cfg.options;
};
fileSystems."/mnt/EightTerra/NVR" = {
device = "tnas1.lab.internal:/mnt/EightTerra/NVR";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" ];
options = cfg.options;
};
fileSystems."/mnt/terra1/Data/apps" = {
device = "terra1.lab.internal:/mnt/Data/apps";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" ];
options = cfg.options;
};
};
}