47 lines
910 B
Nix
47 lines
910 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";
|
|
};
|
|
};
|
|
|
|
boot = {
|
|
loader = {
|
|
grub = {
|
|
enable = true;
|
|
device = "/dev/sda";
|
|
};
|
|
};
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
};
|
|
|
|
time.timeZone = "America/Los_Angeles";
|
|
|
|
zramSwap.enable = true;
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
networking.hostName = "crystal-gitlab";
|
|
networking.useDHCP = true;
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
powerManagement.cpuFreqGovernor = "performance";
|
|
services.qemuGuest.enable = true;
|
|
}
|