dotfiles/nixos/boxes/bootstrap/hardware-configuration.nix

39 lines
628 B
Nix
Raw Normal View History

2022-12-19 09:09:08 +00:00
{
config,
lib,
pkgs,
inputs,
...
}: {
2021-06-26 19:12:31 +01:00
boot = {
2022-12-19 09:09:08 +00:00
kernelModules = ["kvm-intel"];
2021-06-26 19:12:31 +01:00
initrd = {
2022-12-19 09:09:08 +00:00
kernelModules = ["dm-snapshot"];
availableKernelModules = ["xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod"];
2021-06-26 19:12:31 +01:00
};
loader.efi.canTouchEfiVariables = true;
loader.systemd-boot.enable = true;
};
boot.initrd.luks.devices."crypt".device = "replaceme";
fileSystems."/" = {
device = "replaceme";
fsType = "btrfs";
};
fileSystems."/boot" = {
device = "replaceme";
fsType = "vfat";
};
2022-12-19 09:09:08 +00:00
swapDevices = [];
2021-06-26 19:12:31 +01:00
2022-12-04 12:33:54 +00:00
nix.settings = {
max-jobs = "auto";
cores = 0;
};
2021-06-26 19:12:31 +01:00
}