27 lines
818 B
Nix
27 lines
818 B
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
{
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
boot = {
|
|
kernelParams = [
|
|
"memmap=0x4000%0xbfb76000-4"
|
|
"memmap=0x4000%0xbfb7a000-4"
|
|
];
|
|
initrd = {
|
|
availableKernelModules = [ "xhci_pci" "ahci" "ehci_pci" "sd_mod" "sdhci_pci" ];
|
|
luks.devices.root.device = "/dev/disk/by-uuid/e0288e5e-87eb-453f-ab22-0d6e54576609";
|
|
};
|
|
};
|
|
fileSystems = {
|
|
"/" = {
|
|
fsType = "ext4";
|
|
device = "/dev/mapper/root";
|
|
};
|
|
"/boot" = {
|
|
fsType = "vfat";
|
|
device = "/dev/disk/by-uuid/86F4-A8F1";
|
|
options = [ "fmask=0077" "dmask=0077" ];
|
|
};
|
|
};
|
|
}
|