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

32 lines
712 B
Nix
Raw Normal View History

2021-06-12 10:31:25 +01:00
{ config, lib, pkgs, inputs, ... }:
2020-07-11 21:02:36 +01:00
{
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" ];
availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
};
loader.efi.canTouchEfiVariables = true;
2021-06-26 19:12:31 +01:00
loader.systemd-boot.enable = true;
2020-07-11 21:02:36 +01:00
};
boot.initrd.luks.devices."crypt".device = "/dev/disk/by-uuid/c2deaeaa-cb76-4d29-a603-0cf42f6e829f";
2021-06-26 18:55:09 +01:00
2021-06-26 19:12:31 +01:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/FC06-82E6";
2021-06-26 18:55:09 +01:00
fsType = "vfat";
};
2020-07-11 21:02:36 +01:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/cb12122c-f0ef-4c43-bac1-6b8410a51a54";
fsType = "btrfs";
};
2020-07-11 21:02:36 +01:00
swapDevices = [ ];
2020-07-25 09:56:03 +01:00
nix.maxJobs = 2;
nix.buildCores = 6;
2020-07-11 21:02:36 +01:00
}