create nas hardware config
This commit is contained in:
@@ -8,54 +8,67 @@
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "NIX_CONV_POOL/root";
|
||||
fsType = "zfs";
|
||||
{ device = "/dev/disk/by-uuid/05da5ea5-180f-41a3-a81c-5e3325a4c866";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/nix" =
|
||||
{ device = "NIX_CONV_POOL/nix";
|
||||
fsType = "zfs";
|
||||
};
|
||||
#fileSystems."/srv/dev-disk-by-uuid-0fc5586c-ed51-4b02-9a87-4a733ea353a7" =
|
||||
# { device = "/dev/mapper/base--storage-Docker";
|
||||
# fsType = "ext4";
|
||||
# };
|
||||
|
||||
fileSystems."/var" =
|
||||
{ device = "NIX_CONV_POOL/var";
|
||||
fsType = "zfs";
|
||||
};
|
||||
#fileSystems."/srv/dev-disk-by-uuid-18333f38-626c-4c22-af29-314a87282809" =
|
||||
# { device = "/dev/mapper/base--storage-ShatteredMINT";
|
||||
# fsType = "ext4";
|
||||
# };
|
||||
|
||||
fileSystems."/home" =
|
||||
{ device = "NIX_CONV_POOL/home";
|
||||
fsType = "zfs";
|
||||
};
|
||||
#fileSystems."/srv/dev-disk-by-uuid-98570615-8eda-4a45-8a20-3c58b50e3d79" =
|
||||
# { device = "/dev/mapper/base--storage-NAS";
|
||||
# fsType = "ext4";
|
||||
# };
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/334B-15CD";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
#fileSystems."/export/ShatteredMINT" =
|
||||
# { device = "/srv/dev-disk-by-uuid-18333f38-626c-4c22-af29-314a87282809";
|
||||
# fsType = "none";
|
||||
# options = [ "bind" ];
|
||||
# };
|
||||
|
||||
#swapDevices =
|
||||
# [ { device = "/dev/disk/by-uuid/b3e53298-fdcf-41c5-b80b-6f1ef1dceeae"; }
|
||||
# ];
|
||||
#fileSystems."/export/default-nas" =
|
||||
# { device = "/srv/dev-disk-by-uuid-98570615-8eda-4a45-8a20-3c58b50e3d79/default-nas";
|
||||
# fsType = "none";
|
||||
# options = [ "bind" ];
|
||||
# };
|
||||
|
||||
#fileSystems."/var/lib/docker/overlay2/52c3dbf89d5578b1cde892c0ccdad10293c8275870a047aff42b9ba2eb786d02/merged" =
|
||||
# { device = "overlay";
|
||||
# fsType = "overlay";
|
||||
# };
|
||||
|
||||
#fileSystems."/var/lib/docker/overlay2/f7163e8dd1916ab72fb37368f3799d89f07a203cd316448a7f107d8b2249bb7a/merged" =
|
||||
# { device = "overlay";
|
||||
# fsType = "overlay";
|
||||
# };
|
||||
|
||||
#fileSystems."/var/lib/docker/overlay2/9ff1324d7039ab0ea28895230b35432382bbf23d32c24e992525711b6f7c0bd8/merged" =
|
||||
# { device = "overlay";
|
||||
# fsType = "overlay";
|
||||
# };
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
networking.hostName = "nix-nas"; # Define your hostname.
|
||||
networking.hostId = "00000003";
|
||||
# Pick only one of the below networking options.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp4s0f3u1u4u1.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user