feat(console): add the real hardware-configuration.nix
CI / flake (push) Skipped
CI / flake (pull_request) Successful in 4m35s
CI / flake (push) Skipped
CI / flake (pull_request) Successful in 4m35s
replace the generated placeholder now the system boots
This commit is contained in:
@@ -1,57 +1,31 @@
|
|||||||
# PLACEHOLDER -- not generated by nixos-generate-config.
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
#
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# This host has not been installed yet, so there is no real hardware scan to
|
# to /etc/nixos/configuration.nix instead.
|
||||||
# commit. The values below are the conventional defaults for a Haswell UEFI
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
# 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,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports =
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||||||
"xhci_pci"
|
|
||||||
"ehci_pci"
|
|
||||||
"ahci"
|
|
||||||
"nvme"
|
|
||||||
"usb_storage"
|
|
||||||
"usbhid"
|
|
||||||
"sd_mod"
|
|
||||||
"sr_mod"
|
|
||||||
];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" =
|
||||||
device = "/dev/disk/by-label/nixos";
|
{ device = "/dev/disk/by-uuid/2ab976ad-ba88-4d1b-8d70-5a114a4ed024";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" =
|
||||||
device = "/dev/disk/by-label/BOOT";
|
{ device = "/dev/disk/by-uuid/32FB-6BEE";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
"fmask=0022"
|
|
||||||
"dmask=0022"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
networking.useDHCP = lib.mkDefault true;
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user