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

34 lines
781 B
Nix
Raw Normal View History

2022-03-10 12:25:23 +00:00
{ config, lib, pkgs, inputs, ... }: {
2021-09-11 21:49:03 +01:00
boot = {
2021-09-18 08:50:11 +01:00
kernelModules = [ "kvm-intel" ];
initrd = {
kernelModules = [ "dm-snapshot" ];
2022-03-10 12:25:23 +00:00
availableKernelModules =
[ "ata_generic" "uhci_hcd" "ehci_pci" "ahci" "usb_storage" "sd_mod" ];
2021-09-11 20:32:23 +01:00
};
2021-09-18 10:31:15 +01:00
loader.grub.enable = true;
loader.grub.version = 2;
loader.grub.device = "/dev/sda";
2021-09-18 08:50:11 +01:00
};
2021-09-18 10:31:15 +01:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/87ea2035-a966-4a06-8b66-e4ac366c3cb9";
fsType = "btrfs";
};
2021-09-11 20:32:23 +01:00
2022-03-10 12:25:23 +00:00
boot.initrd.luks.devices."crypt".device =
"/dev/disk/by-uuid/8d51b38a-5d90-4a7a-a86a-0d57648fd82d";
2021-09-18 08:50:11 +01:00
2021-09-18 10:31:15 +01:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/195b3f15-885e-4123-879f-6e4591a58317";
fsType = "ext2";
};
2021-09-11 20:32:23 +01:00
2021-09-18 08:50:11 +01:00
swapDevices = [ ];
2021-09-11 20:32:23 +01:00
2021-09-18 08:50:11 +01:00
nix.maxJobs = 2;
2021-09-18 10:31:15 +01:00
nix.buildCores = 2;
2021-09-18 08:50:11 +01:00
}