36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{ config, lib, pkgs, inputs, modulesPath, ... }:
|
|
let
|
|
refSystem = inputs.nixpkgs-old-kernel.lib.nixosSystem {
|
|
system = pkgs.system;
|
|
modules = [ inputs.nixos-hardware.nixosModules.microsoft-surface-go ];
|
|
};
|
|
refKernelPackages = refSystem.config.boot.kernelPackages;
|
|
in
|
|
{
|
|
imports =
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
boot.extraModulePackages = [ ];
|
|
boot.kernelParams = [
|
|
"quiet"
|
|
"splash"
|
|
"boot.shell_on_fail"
|
|
"udev.log_priority=3"
|
|
"rd.systemd.show_status=auto"
|
|
"intel_ipu3_imgu"
|
|
"intel_ipu3_isys"
|
|
];
|
|
|
|
boot.kernelPackages = lib.mkForce refKernelPackages;
|
|
|
|
disko.devices.disk.main.content.partitions.swap.size = "8G";
|
|
disko.devices.disk.main.device = "/dev/mmcblk0";
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|