create nas hardware config
This commit is contained in:
@@ -8,54 +8,67 @@
|
|||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (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.kernelModules = [ ];
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||||
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "NIX_CONV_POOL/root";
|
{ device = "/dev/disk/by-uuid/05da5ea5-180f-41a3-a81c-5e3325a4c866";
|
||||||
fsType = "zfs";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/nix" =
|
#fileSystems."/srv/dev-disk-by-uuid-0fc5586c-ed51-4b02-9a87-4a733ea353a7" =
|
||||||
{ device = "NIX_CONV_POOL/nix";
|
# { device = "/dev/mapper/base--storage-Docker";
|
||||||
fsType = "zfs";
|
# fsType = "ext4";
|
||||||
};
|
# };
|
||||||
|
|
||||||
fileSystems."/var" =
|
#fileSystems."/srv/dev-disk-by-uuid-18333f38-626c-4c22-af29-314a87282809" =
|
||||||
{ device = "NIX_CONV_POOL/var";
|
# { device = "/dev/mapper/base--storage-ShatteredMINT";
|
||||||
fsType = "zfs";
|
# fsType = "ext4";
|
||||||
};
|
# };
|
||||||
|
|
||||||
fileSystems."/home" =
|
#fileSystems."/srv/dev-disk-by-uuid-98570615-8eda-4a45-8a20-3c58b50e3d79" =
|
||||||
{ device = "NIX_CONV_POOL/home";
|
# { device = "/dev/mapper/base--storage-NAS";
|
||||||
fsType = "zfs";
|
# fsType = "ext4";
|
||||||
};
|
# };
|
||||||
|
|
||||||
fileSystems."/boot" =
|
#fileSystems."/export/ShatteredMINT" =
|
||||||
{ device = "/dev/disk/by-uuid/334B-15CD";
|
# { device = "/srv/dev-disk-by-uuid-18333f38-626c-4c22-af29-314a87282809";
|
||||||
fsType = "vfat";
|
# fsType = "none";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
# options = [ "bind" ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
#swapDevices =
|
#fileSystems."/export/default-nas" =
|
||||||
# [ { device = "/dev/disk/by-uuid/b3e53298-fdcf-41c5-b80b-6f1ef1dceeae"; }
|
# { 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.hostName = "nix-nas"; # Define your hostname.
|
||||||
networking.hostId = "00000003";
|
networking.hostId = "00000003";
|
||||||
# Pick only one of the below networking options.
|
# 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.
|
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.useDHCP = lib.mkDefault true;
|
||||||
# networking.interfaces.enp4s0f3u1u4u1.useDHCP = lib.mkDefault true;
|
|
||||||
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user