yumeami/systems/x86_64-linux/kokoro/hardware-configuration.nix
C4 Patino 1c13f66f90
Some checks failed
ci / treefmt (push) Failing after 6s
chore: switch kokoro to use linux kernel version 7.0
2026-07-04 17:55:58 -05:00

50 lines
1.2 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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,
modulesPath,
pkgs,
...
}: {
imports = [
(modulesPath + "/hardware/cpu/intel-npu.nix")
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
kernelPackages = pkgs.linuxPackages_7_0;
kernelModules = [
"imx471"
"kvm-intel"
"v4l2loopback"
];
extraModulePackages = with pkgs.linuxPackages_7_0; [
imx471
v4l2loopback
];
extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=0 card_label="IMX471 Virtual Camera" exclusive_caps=1
'';
initrd = {
availableKernelModules = [
"nvme"
"sd_mod"
"thunderbolt"
"usb_storage"
"xhci_pci"
];
kernelModules = [];
};
};
services.logind.settings.Login.HandleLidSwitchExternalPower = "ignore";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel = {
npu.enable = true;
updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}