From 255e688596f3b8bf039ed46cd71765bf6b758310 Mon Sep 17 00:00:00 2001 From: caley <195605706+cqley@users.noreply.github.com> Date: Wed, 22 Jul 2026 00:49:38 +0200 Subject: Create hardware-configuration.nix --- nixos/hosts/bin/hardware-configuration.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 nixos/hosts/bin/hardware-configuration.nix diff --git a/nixos/hosts/bin/hardware-configuration.nix b/nixos/hosts/bin/hardware-configuration.nix new file mode 100644 index 0000000..782ecf5 --- /dev/null +++ b/nixos/hosts/bin/hardware-configuration.nix @@ -0,0 +1,22 @@ +{ config, lib, pkgs, 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 = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/ac49fd20-c9ba-4dc6-8f3b-66399b6cc714"; + fsType = "ext4"; + options = [ "noatime" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +} -- cgit v1.3.1