24 lines
763 B
Nix
24 lines
763 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 = {
|
|
kernelModules = [ "kvm-amd" ];
|
|
initrd = {
|
|
luks.devices.root.device = "/dev/disk/by-uuid/70ac6613-2e6c-4817-a0ce-43a97efb8bab";
|
|
availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ];
|
|
};
|
|
};
|
|
fileSystems = {
|
|
"/" = {
|
|
fsType = "ext4";
|
|
device = "/dev/mapper/root";
|
|
};
|
|
"/boot" = {
|
|
fsType = "vfat";
|
|
device = "/dev/disk/by-uuid/2610-A769";
|
|
options = [ "fmask=0077" "dmask=0077" ];
|
|
};
|
|
};
|
|
}
|