2024-05-03 17:32:27 -04:00
|
|
|
# Minisforum UM340
|
2024-05-07 18:02:59 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
boot = {
|
|
|
|
supportedFilesystems = [ "btrfs" ];
|
|
|
|
kernelModules = [ "kvm-amd" ];
|
|
|
|
extraModulePackages = [ ];
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
initrd = {
|
|
|
|
supportedFilesystems = [ "btrfs" ];
|
|
|
|
availableKernelModules = [
|
|
|
|
"nvme"
|
|
|
|
"xhci_pci"
|
|
|
|
"ahci"
|
|
|
|
"usb_storage"
|
|
|
|
"usbhid"
|
|
|
|
"sd_mod"
|
|
|
|
"btrfs"
|
|
|
|
];
|
|
|
|
kernelModules = [ ];
|
|
|
|
};
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-uuid/2c76c660-3573-4622-8771-f23fa7ee302a";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@,compress=zstd" ];
|
|
|
|
};
|
|
|
|
"/home" = {
|
|
|
|
device = "/dev/disk/by-uuid/2c76c660-3573-4622-8771-f23fa7ee302a";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@home,compress=zstd" ];
|
|
|
|
};
|
|
|
|
"/swap" = {
|
|
|
|
device = "/dev/disk/by-uuid/2c76c660-3573-4622-8771-f23fa7ee302a";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@swap" ];
|
|
|
|
};
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/0120-A755";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
swapDevices = [
|
|
|
|
{
|
|
|
|
device = "/swap/swapfile";
|
|
|
|
size = 16384;
|
|
|
|
}
|
|
|
|
];
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
networking = {
|
|
|
|
useDHCP = lib.mkDefault true;
|
|
|
|
hostName = "Haven";
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2024-02-29 09:53:34 -05:00
|
|
|
}
|