From 97c346a641fe776be183a4e8d26090a271367ca0 Mon Sep 17 00:00:00 2001 From: rogueking Date: Mon, 22 Jun 2026 00:32:09 -0400 Subject: [PATCH] fixed btrfs support configs and swap --- hosts/buildbox/hardware-configuration.nix | 42 +++++++---------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/hosts/buildbox/hardware-configuration.nix b/hosts/buildbox/hardware-configuration.nix index abb9d63..2418c4a 100644 --- a/hosts/buildbox/hardware-configuration.nix +++ b/hosts/buildbox/hardware-configuration.nix @@ -1,33 +1,17 @@ -# Hardware profile for buildbox (QEMU/KVM VM). -# -# Filesystems, swap, and boot-related disk config are intentionally NOT -# declared here — they are owned by disko via ./disko-config.nix, which -# sets config.fileSystems / config.swapDevices / config.boot when -# disko.enableConfig = true (the default). Keep this file limited to -# kernel modules and platform settings that disko does not manage. -# -# This file is still regenerated by `nixos-anywhere --generate-hardware-config -# nixos-generate-config ./hosts/buildbox/hardware-configuration.nix`, so any -# hand-edits here may be overwritten on the next install. The disko-owned -# filesystem entries below are stripped on purpose; do not re-add them. +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + { - config, - lib, - pkgs, - modulesPath, - ... -}: { - imports = [ - (modulesPath + "/profiles/qemu-guest.nix") - ]; + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; - boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "uas" "sd_mod"]; - boot.initrd.kernelModules = ["btrfs"]; - boot.kernelModules = []; - boot.extraModulePackages = []; - - networking.useDHCP = lib.mkDefault true; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -} +} \ No newline at end of file