nixos/ananicy: fix eval when hardened kernel is used with ananicy-cpp

This commit is contained in:
John Titor 2024-12-03 00:14:56 +05:30
parent ae5d6bcc8e
commit a86b5873b6
No known key found for this signature in database
GPG Key ID: 29B0514F4E3C1CC0

View File

@ -22,7 +22,7 @@ let
# Ananicy-CPP with BPF is not supported on hardened kernels https://github.com/NixOS/nixpkgs/issues/327382
finalPackage =
if (servicename == "ananicy-cpp" && config.boot.kernelPackages.isHardened) then
(cfg.package { withBpf = false; })
(cfg.package.override { withBpf = false; })
else
cfg.package;
in