Partially migrated over network drives
This commit is contained in:
1 parent
5fb36fc027
commit
3bfe90e7ef
2 files changed
+32
-15
No files matched your search
+2
-1
@@ -19,6 +19,7 @@
|
||||
imports = [
|
||||
(import ./skyg)
|
||||
(import ./nixos)
|
||||
(import ./network-drives.nix)
|
||||
] ++ (if os.enable then
|
||||
[
|
||||
(import ./os ({
|
||||
@@ -28,13 +29,13 @@
|
||||
]
|
||||
else
|
||||
[ ])
|
||||
++ (if enableNetworkDrives then [ (import ./network-drives.nix) ] else [ ])
|
||||
;
|
||||
# Share defaults
|
||||
skyg.user = user;
|
||||
skyg.core.hostName = hostName;
|
||||
skyg.home-manager.version = homeManagerVersion;
|
||||
skyg.core.substituters = localNixCaches;
|
||||
skyg.networkDrives.enabled = enableNetworkDrives;
|
||||
system.stateVersion = systemStateVersion;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix = {
|
||||
|
||||
+30
-14
@@ -1,19 +1,35 @@
|
||||
{ ... }: {
|
||||
fileSystems."/mnt/EightTerra/DownloadedTorrents" = {
|
||||
device = "tnas1.lab.internal:/mnt/EightTerra/DownloadedTorrents";
|
||||
fsType = "nfs";
|
||||
options = [ "x-systemd.automount" "noauto" ];
|
||||
{ lib
|
||||
, config
|
||||
, ...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.skyg.networkDrives;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
skyg.networkDrives = {
|
||||
enabled = mkEnableOption
|
||||
"Network Drives";
|
||||
};
|
||||
};
|
||||
config = mkIf cfg.enabled {
|
||||
fileSystems."/mnt/EightTerra/DownloadedTorrents" = {
|
||||
device = "tnas1.lab.internal:/mnt/EightTerra/DownloadedTorrents";
|
||||
fsType = "nfs";
|
||||
options = [ "x-systemd.automount" "noauto" ];
|
||||
};
|
||||
|
||||
fileSystems."/mnt/EightTerra/k3s-cluster" = {
|
||||
device = "tnas1.lab.internal:/mnt/EightTerra/k3s-cluster";
|
||||
fsType = "nfs";
|
||||
options = [ "x-systemd.automount" "noauto" ];
|
||||
};
|
||||
fileSystems."/mnt/EightTerra/k3s-cluster" = {
|
||||
device = "tnas1.lab.internal:/mnt/EightTerra/k3s-cluster";
|
||||
fsType = "nfs";
|
||||
options = [ "x-systemd.automount" "noauto" ];
|
||||
};
|
||||
|
||||
fileSystems."/mnt/EightTerra/NVR" = {
|
||||
device = "tnas1.lab.internal:/mnt/EightTerra/NVR";
|
||||
fsType = "nfs";
|
||||
options = [ "x-systemd.automount" "noauto" ];
|
||||
fileSystems."/mnt/EightTerra/NVR" = {
|
||||
device = "tnas1.lab.internal:/mnt/EightTerra/NVR";
|
||||
fsType = "nfs";
|
||||
options = [ "x-systemd.automount" "noauto" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user