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

39 lines
969 B
Nix
Raw Normal View History

2021-09-11 20:32:23 +01:00
{ config, lib, pkgs, ... }:
{
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2021-09-11 21:49:03 +01:00
boot = {
kernelPackages = pkgs.linuxPackages_latest_hardened;
initrd.availableKernelModules = [ "ata_generic" "uhci_hcd" "ehci_pci" "ahci" "usb_storage" "sd_mod" ];
initrd.luks.devices."crypt"=
{
device = "/dev/disk/by-uuid/962caed1-9dd5-4771-9a8f-3d3f5854af2e";
preLVM = true;
allowDiscards = true;
};
loader.grub = {
device = "/dev/sda";
};
2021-09-11 20:32:23 +01:00
};
2021-09-11 21:49:03 +01:00
time.timeZone = "Europe/Warsaw";
2021-09-11 20:32:23 +01:00
fileSystems."/" =
{ device = "/dev/disk/by-uuid/11fb2333-f06f-4970-9b74-a5287bab5058";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/a8704d8b-e174-4bcd-9558-085a85ed1ceb";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/43d05f3c-5f2b-42cf-b052-06b6a3e82c45"; }
];
nix.maxJobs = lib.mkDefault 2;
}