2023-05-09 06:35:14 +02:00
|
|
|
{
|
2023-06-06 02:37:52 +02:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usb_storage" "sd_mod"];
|
|
|
|
boot.initrd.kernelModules = [];
|
|
|
|
boot.kernelModules = ["kvm-amd"];
|
|
|
|
boot.extraModulePackages = [];
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-label/nixos";
|
|
|
|
fsType = "btrfs";
|
|
|
|
};
|
2023-05-09 06:35:14 +02:00
|
|
|
|
|
|
|
boot.initrd.luks.devices."root".device = "/dev/disk/by-label/nixos-luks";
|
|
|
|
|
2023-06-06 02:37:52 +02:00
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-label/boot";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2023-05-09 06:35:14 +02:00
|
|
|
|
2023-06-06 02:37:52 +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;
|
|
|
|
}
|