Advertisement
Guest User

Untitled

a guest
Nov 13th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. { pkgs, ... }:
  2.  
  3. {
  4. boot.kernelPackages = let
  5. linux_xanmod_pkg = { fetchFromGitHub, buildLinux, ... } @ args:
  6.  
  7. buildLinux (args // rec {
  8. version = "5.9.8-xanmod1";
  9. modDirVersion = version;
  10.  
  11. src = fetchFromGitHub {
  12. owner = "xanmod";
  13. repo = "linux";
  14. rev = "99f1ba6a16a7b65a504a62c104edd7f8a4ec1c47";
  15. sha256 = "16k22nl32x9s0j7b4v3dz0ck8302bq8f1yawb5zpzwy7g8ssnc6m";
  16. };
  17. kernelPatches = [];
  18.  
  19. extraConfig = ''
  20. USER_NS_UNPRIVILEGED y
  21. FUNCTION_TRACER n
  22. GRAPH_TRACER n
  23. NUMA n
  24. '';
  25.  
  26. extraMeta.branch = "5.9.8-xanmod1";
  27. } // (args.argsOverride or {}));
  28. linux_xanmod = pkgs.callPackage linux_xanmod_pkg{};
  29. in
  30. pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux_xanmod);
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement