tweak kernel overriding

This commit is contained in:
xenofem 2022-06-30 18:04:08 -04:00
parent 99b0bc8c33
commit 5ce938bbb3

View file

@ -7,18 +7,19 @@
pkgs = import nixpkgs { system = "x86_64-linux"; }; pkgs = import nixpkgs { system = "x86_64-linux"; };
in rec { in rec {
packages.x86_64-linux = rec { packages.x86_64-linux = rec {
default = linux-kernel-fanotify; default = linuxPackages_fanotify.kernel;
linux-kernel-fanotify = pkgs.linuxPackages.kernel.override {
extraConfig = '' linuxPackages_fanotify = pkgs.linuxPackages.extend (final: prev: {
FANOTIFY_ACCESS_PERMISSIONS y kernel = prev.kernel.override {
''; extraConfig = ''
}; FANOTIFY_ACCESS_PERMISSIONS y
'';
};
});
}; };
overlay = final: prev: { overlay = final: prev: {
linuxPackages_fanotify = pkgs.linuxPackages // { inherit (packages.x86_64-linux) linuxPackages_fanotify;
kernel = packages.x86_64-linux.linux-kernel-fanotify;
};
}; };
}; };
} }