From 32a3067cb0ff3bd080970b3c939c31ae58bf67f1 Mon Sep 17 00:00:00 2001 From: moons Date: Wed, 26 Aug 2026 15:53:44 +0900 Subject: [PATCH] hardware configuration --- hosts/nix-builder/hardware-configuration.nix | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 hosts/nix-builder/hardware-configuration.nix diff --git a/hosts/nix-builder/hardware-configuration.nix b/hosts/nix-builder/hardware-configuration.nix new file mode 100644 index 0000000..564b4b4 --- /dev/null +++ b/hosts/nix-builder/hardware-configuration.nix @@ -0,0 +1,40 @@ +# 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 = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/49fc2e1c-7909-41cc-ac78-55b4d9a01e62"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/40D4-ABBE"; + fsType = "vfat"; + options = [ + "fmask=0077" + "dmask=0077" + ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}