Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { pkgs, ... }:
- {
- boot.kernelPackages = let
- linux_xanmod_pkg = { fetchFromGitHub, buildLinux, ... } @ args:
- buildLinux (args // rec {
- version = "5.9.8-xanmod1";
- modDirVersion = version;
- src = fetchFromGitHub {
- owner = "xanmod";
- repo = "linux";
- rev = "99f1ba6a16a7b65a504a62c104edd7f8a4ec1c47";
- sha256 = "16k22nl32x9s0j7b4v3dz0ck8302bq8f1yawb5zpzwy7g8ssnc6m";
- };
- kernelPatches = [];
- extraConfig = ''
- USER_NS_UNPRIVILEGED y
- FUNCTION_TRACER n
- GRAPH_TRACER n
- NUMA n
- '';
- extraMeta.branch = "5.9.8-xanmod1";
- } // (args.argsOverride or {}));
- linux_xanmod = pkgs.callPackage linux_xanmod_pkg{};
- in
- pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux_xanmod);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement