2024-08-03 20:42:39 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}:
|
2023-06-22 13:46:53 +02:00
|
|
|
|
|
|
|
{
|
2024-08-03 20:42:39 +02:00
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2023-06-06 02:37:52 +02:00
|
|
|
|
2024-08-03 07:51:58 +02:00
|
|
|
boot = {
|
|
|
|
initrd = {
|
2024-08-11 02:55:04 +02:00
|
|
|
luks.devices."root".device = "/dev/disk/by-label/nixos-luks";
|
|
|
|
|
2024-08-03 20:42:39 +02:00
|
|
|
availableKernelModules = [
|
|
|
|
"nvme"
|
|
|
|
"xhci_pci"
|
|
|
|
"usb_storage"
|
|
|
|
"sd_mod"
|
|
|
|
];
|
|
|
|
|
2024-08-03 07:51:58 +02:00
|
|
|
kernelModules = [ ];
|
|
|
|
};
|
|
|
|
|
|
|
|
kernelModules = [ "kvm-amd" ];
|
|
|
|
extraModulePackages = [ ];
|
|
|
|
};
|
2023-06-06 02:37:52 +02:00
|
|
|
|
2024-08-11 02:55:04 +02:00
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-label/nixos";
|
|
|
|
fsType = "btrfs";
|
|
|
|
};
|
2023-05-09 06:35:14 +02:00
|
|
|
|
2024-08-11 02:55:04 +02:00
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-label/boot";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2024-04-05 17:26:22 +02:00
|
|
|
};
|
2023-05-09 06:35:14 +02:00
|
|
|
|
2023-06-11 15:33:54 +02:00
|
|
|
swapDevices = [ ];
|
2023-05-09 06:35:14 +02:00
|
|
|
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|