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