47 lines
938 B
Nix
47 lines
938 B
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
imports =
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
boot.loader.systemd-boot = {
|
|
enable = true;
|
|
configurationLimit = 5;
|
|
};
|
|
|
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.extraModulePackages = [ ];
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-label/boot";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
boot.kernelParams = [
|
|
"tpm_tis.interrupts=0"
|
|
];
|
|
|
|
boot.initrd = {
|
|
luks.devices.root = {
|
|
device = "/dev/disk/by-label/root";
|
|
|
|
allowDiscards = true;
|
|
|
|
keyFile = "/dev/zero";
|
|
keyFileSize = 1;
|
|
};
|
|
};
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/mapper/root";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
swapDevices = [ ];
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|