1 Commits
Author SHA1 Message Date
lyrathorpe 6ea400be53 feat(console): add the real hardware-configuration.nix
CI / flake (push) Skipped
CI / flake (pull_request) Successful in 4m35s
replace the generated placeholder now the system boots
2026-08-29 19:33:54 +01:00
+12 -38
View File
@@ -1,57 +1,31 @@
# PLACEHOLDER -- not generated by nixos-generate-config.
#
# This host has not been installed yet, so there is no real hardware scan to
# commit. The values below are the conventional defaults for a Haswell UEFI
# desktop and assume the install labels its partitions `nixos` (root, ext4) and
# `BOOT` (ESP, vfat) -- see docs/hosts/console.md. They exist so the flake
# evaluates in CI; they are not a description of the actual machine.
#
# Replace this whole file with the output of `nixos-generate-config` run on the
# machine, and commit that. If the labels do not match, the boot fails loudly on
# a missing device rather than touching the wrong disk.
{
config,
lib,
modulesPath,
...
}:
# 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, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"nvme"
"usb_storage"
"usbhid"
"sd_mod"
"sr_mod"
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fileSystems."/" =
{ device = "/dev/disk/by-uuid/2ab976ad-ba88-4d1b-8d70-5a114a4ed024";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/BOOT";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/32FB-6BEE";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}