update hardware config

This commit is contained in:
Tyler Mayoff 2025-11-29 15:17:45 -05:00 committed by Tyle Mayoff
parent 155be8e821
commit 7e461c2c49
2 changed files with 75 additions and 41 deletions

View file

@ -1,12 +1,46 @@
{modulesPath, ...}: {
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
boot.loader.grub.device = "/dev/vda";
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"];
boot.initrd.kernelModules = ["nvme"];
{
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_blk"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/vda1";
device = "/dev/disk/by-uuid/db174184-450c-4a20-8f49-7cdfa7286597";
fsType = "ext4";
};
swapDevices = [{device = "/dev/vdb";}];
nixpkgs.hostPlatform = "x86_64-linux";
# fileSystems."/efi" = {
# device = "systemd-1";
# fsType = "autofs";
# };
fileSystems."/efi" = {
device = "/dev/disk/by-uuid/CAD5-786D";
fsType = "vfat";
options = ["fmask=0077" "dmask=0077"];
};
swapDevices = [
{device = "/dev/disk/by-uuid/c32340af-8706-4373-8e2b-349e9d5c3475";}
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.ens3.useDHCP = lib.mkDefault true;
# networking.interfaces.tailscale0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}