forked from DGNum/lab-infra
34 lines
692 B
Nix
34 lines
692 B
Nix
{ lib, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
|
|
|
boot = {
|
|
loader.systemd-boot.enable = true;
|
|
initrd.kernelModules = [ ];
|
|
kernelModules = [ ];
|
|
extraModulePackages = [ ];
|
|
initrd.availableKernelModules = [
|
|
"ata_piix"
|
|
"uhci_hcd"
|
|
"virtio_pci"
|
|
"virtio_scsi"
|
|
"sd_mod"
|
|
"sr_mod"
|
|
];
|
|
};
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-partlabel/disk-sda-root";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-partlabel/disk-sda-ESP";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
networking.useDHCP = lib.mkDefault false;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
}
|