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"; };
in rec {
packages.x86_64-linux = rec {
default = linux-kernel-fanotify;
linux-kernel-fanotify = pkgs.linuxPackages.kernel.override {
extraConfig = ''
FANOTIFY_ACCESS_PERMISSIONS y
'';
};
default = linuxPackages_fanotify.kernel;
linuxPackages_fanotify = pkgs.linuxPackages.extend (final: prev: {
kernel = prev.kernel.override {
extraConfig = ''
FANOTIFY_ACCESS_PERMISSIONS y
'';
};
});
};
overlay = final: prev: {
linuxPackages_fanotify = pkgs.linuxPackages // {
kernel = packages.x86_64-linux.linux-kernel-fanotify;
};
inherit (packages.x86_64-linux) linuxPackages_fanotify;
};
};
}