2024-09-04 14:39:03 +00:00
|
|
|
# Minisforum UM340
|
|
|
|
{ modulesPath, ... }:
|
|
|
|
let
|
2024-09-06 00:24:12 +00:00
|
|
|
bootUUID = "D2E7-FE8F"; # The UUID of the boot partition.
|
|
|
|
luksUUID = "7b9c756c-ba9d-43fc-b935-7c77a70f5f1b"; # The UUID of the locked LUKS partition.
|
2024-09-04 14:39:03 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
supportedFilesystems = [ "btrfs" ];
|
|
|
|
kernelModules = [ "kvm-amd" ];
|
|
|
|
|
|
|
|
initrd = {
|
|
|
|
supportedFilesystems = [ "btrfs" ];
|
|
|
|
availableKernelModules = [
|
|
|
|
"nvme"
|
|
|
|
"xhci_pci"
|
|
|
|
"ahci"
|
|
|
|
"usb_storage"
|
|
|
|
"usbhid"
|
|
|
|
"sd_mod"
|
|
|
|
"btrfs"
|
|
|
|
];
|
|
|
|
kernelModules = [ ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable support for building ARM64 packages
|
|
|
|
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Configure the main filesystem.
|
|
|
|
aux.system.filesystem = {
|
|
|
|
enable = true;
|
|
|
|
partitions = {
|
|
|
|
boot = "/dev/disk/by-uuid/${bootUUID}";
|
|
|
|
luks = "/dev/disk/by-uuid/${luksUUID}";
|
|
|
|
};
|
|
|
|
swapFile = {
|
|
|
|
enable = true;
|
|
|
|
size = 16384;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|