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

36 lines
900 B
Nix
Raw Normal View History

2022-03-10 12:25:23 +00:00
{ config, lib, pkgs, inputs, ... }: {
2020-07-25 09:56:03 +01:00
boot = {
2021-06-12 10:31:25 +01:00
kernelModules = [ "kvm-intel" ];
2020-07-25 09:56:03 +01:00
initrd = {
kernelModules = [ "dm-snapshot" ];
2022-03-10 12:25:23 +00:00
availableKernelModules =
[ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
2020-07-25 09:56:03 +01:00
};
2021-06-26 19:12:31 +01:00
loader.systemd-boot.enable = true;
2022-07-06 20:07:12 +01:00
loader.efi.canTouchEfiVariables = true;
loader.efi.efiSysMountPoint = "/boot/efi";
2020-07-11 21:02:36 +01:00
};
2022-07-06 20:07:12 +01:00
boot.initrd.secrets = { "/crypto_keyfile.bin" = null; };
boot.initrd.luks.devices."luks-43a80125-4089-45be-9561-fab93f984916".device =
"/dev/disk/by-uuid/43a80125-4089-45be-9561-fab93f984916";
2021-06-26 18:55:09 +01:00
2022-07-06 20:07:12 +01:00
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/D6C0-1A9D";
2021-06-26 18:55:09 +01:00
fsType = "vfat";
};
2020-07-11 21:02:36 +01:00
fileSystems."/" = {
2022-07-06 20:07:12 +01:00
device = "/dev/disk/by-uuid/98f3597c-183a-45fb-b2a4-b598c18d089a";
fsType = "btrfs";
2022-07-06 20:07:12 +01:00
options = [ "subvol=@" ];
};
2020-07-11 21:02:36 +01:00
swapDevices = [ ];
2020-07-25 09:56:03 +01:00
nix.maxJobs = 2;
2022-07-06 20:07:12 +01:00
nix.buildCores = 7;
2020-07-11 21:02:36 +01:00
}