50 lines
890 B
Nix
50 lines
890 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
modulesPath,
|
||
|
...
|
||
|
}:
|
||
|
{
|
||
|
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||
|
|
||
|
boot.loader.grub = {
|
||
|
enable = true;
|
||
|
device = "/dev/sda";
|
||
|
efiSupport = true;
|
||
|
efiInstallAsRemovable = true;
|
||
|
};
|
||
|
|
||
|
boot.initrd.availableKernelModules = [
|
||
|
"ahci"
|
||
|
"xhci_pci"
|
||
|
"virtio_pci"
|
||
|
"virtio_scsi"
|
||
|
"sd_mod"
|
||
|
"sr_mod"
|
||
|
];
|
||
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||
|
boot.kernelModules = [ ];
|
||
|
boot.extraModulePackages = [ ];
|
||
|
|
||
|
fileSystems."/" = {
|
||
|
device = "/dev/disk/by-uuid/1f8281c1-745d-47bc-a8dd-743cf2ac8a2e";
|
||
|
fsType = "ext4";
|
||
|
};
|
||
|
|
||
|
fileSystems."/boot" = {
|
||
|
device = "/dev/disk/by-uuid/F1C7-9205";
|
||
|
fsType = "vfat";
|
||
|
options = [
|
||
|
"fmask=0022"
|
||
|
"dmask=0022"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
swapDevices = [ ];
|
||
|
|
||
|
networking.useDHCP = lib.mkDefault true;
|
||
|
|
||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
|
}
|