Skip to content

Instantly share code, notes, and snippets.

@nivpgir
Created February 18, 2019 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nivpgir/1bc63eba6dcb5813db5b2069200c0ecf to your computer and use it in GitHub Desktop.
Save nivpgir/1bc63eba6dcb5813db5b2069200c0ecf to your computer and use it in GitHub Desktop.
{ config, lib, pkgs, ... }:
let
qca9377_firmware = pkgs.callPackage ./qca9377_firmware.nix { };
in
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" "sr_mod" "rtsx_pci_sdmmc" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/5b19d22a-ee07-45cd-ae58-7583335c0f5d";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/C2BB-2E4C";
fsType = "vfat";
};
swapDevices = [
{ label = "swap"; }
];
nix.maxJobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.firmware = with pkgs; [
# firmwareLinuxNonfree
qca9377_firmware ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment