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

42 lines
903 B
Nix
Raw Normal View History

2022-12-19 09:09:08 +00:00
{
config,
lib,
pkgs,
inputs,
...
}: {
2020-07-25 09:56:03 +01:00
boot = {
2022-12-19 09:09:08 +00:00
kernelModules = ["kvm-intel"];
2020-07-25 09:56:03 +01:00
initrd = {
2022-12-19 09:09:08 +00:00
kernelModules = ["dm-snapshot"];
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-12-19 09:09:08 +00: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-12-19 09:09:08 +00:00
options = ["subvol=@"];
};
2022-12-19 09:09:08 +00:00
swapDevices = [];
2020-07-11 21:02:36 +01:00
2022-12-02 14:56:05 +00:00
nix.settings = {
max-jobs = 7;
cores = 4;
};
2020-07-11 21:02:36 +01:00
}