-
-
Save mwilsoncoding/7e4d27f3a440c1a6f30491aeb7d83f25 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { 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