From e789b5a16f3f396daecacf97b34fb5536bb48434 Mon Sep 17 00:00:00 2001 From: moons Date: Thu, 3 Sep 2026 19:54:09 +0900 Subject: [PATCH] add hardware conf --- hosts/ops/hardware-configuration.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 hosts/ops/hardware-configuration.nix diff --git a/hosts/ops/hardware-configuration.nix b/hosts/ops/hardware-configuration.nix new file mode 100644 index 0000000..f021f0b --- /dev/null +++ b/hosts/ops/hardware-configuration.nix @@ -0,0 +1,28 @@ +# 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. +{ + lib, + modulesPath, + ... +}: + +{ + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ]; + + 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"; +}