Archived
0
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
flake/devices/crystal-gitlab/base.nix

48 lines
910 B
Nix
Raw Normal View History

{
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";
};
};
2023-05-07 05:58:39 +00:00
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;
}