Bruno BELANYI
866225393b
But keep 'porthos.nix' at the root of the repository. I feel like it is cleaner to keep device specific files at the root.
24 lines
437 B
Nix
24 lines
437 B
Nix
# Boot configuration
|
|
{ ... }:
|
|
|
|
{
|
|
boot = {
|
|
# Use the GRUB 2 boot loader.
|
|
loader.grub = {
|
|
enable = true;
|
|
version = 2;
|
|
# Define on which hard drive you want to install Grub.
|
|
device = "/dev/sda";
|
|
};
|
|
|
|
initrd = {
|
|
availableKernelModules = [ "uhci_hcd" "ahci" "usbhid" ];
|
|
kernelModules = [ "dm-snapshot" ];
|
|
};
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
extraModulePackages = [ ];
|
|
};
|
|
}
|