tweak kernel overriding
This commit is contained in:
parent
99b0bc8c33
commit
5ce938bbb3
11
flake.nix
11
flake.nix
|
@ -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 {
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue