Skip to content

Instantly share code, notes, and snippets.

@mwilsoncoding
Last active December 15, 2019 15:42
Show Gist options
  • Save mwilsoncoding/7e4d27f3a440c1a6f30491aeb7d83f25 to your computer and use it in GitHub Desktop.
Save mwilsoncoding/7e4d27f3a440c1a6f30491aeb7d83f25 to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
let
linux_5_3 = (pkgs.callPackage ./linux-5.3.nix { kernelPatches = [ pkgs.kernelPatches.bridge_stp_helper ]; });
linuxPackages_5_3 = pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux_5_3);
in
{
boot.kernelPackages = linuxPackages_5_3;
# This is required for system76-driver, I believe. Can I just add this to the nix script?
boot.kernelParams = [ "ec_sys.write_support=1" ];
# Imports the overlay
nixpkgs.overlays = [
(self: super: {
linuxPackages_5_3 = linuxPackages_5_3.extend(lpself: lpsuper: {
system76-dkms = (lpself.callPackage ./system76-dkms {}).latest;
});
})
];
boot.extraModulePackages = [ (linuxPackages_5_3).system76-dkms ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment