32 lines
692 B
Nix
32 lines
692 B
Nix
|
{
|
||
|
config,
|
||
|
pkgs,
|
||
|
lib,
|
||
|
modulesPath,
|
||
|
...
|
||
|
}: {
|
||
|
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
|
||
|
|
||
|
boot = {
|
||
|
initrd = {
|
||
|
availableKernelModules = ["uhci_hcd" "ehci-pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
|
||
|
kernelModules = [];
|
||
|
};
|
||
|
kernelModules = ["kvm-intel"];
|
||
|
extraModulePackages = [];
|
||
|
};
|
||
|
|
||
|
fileSystems = {
|
||
|
"/" = {
|
||
|
device = "/dev/sda1";
|
||
|
fsType = "xfs";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
networking.hostName = "crystal-gitlab";
|
||
|
networking.useDHCP = true;
|
||
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||
|
powerManagement.cpuFreqGovernor = "powersave";
|
||
|
hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;
|
||
|
}
|