From a86b5873b6e303c33ab330165d6fb7d7ca64079c Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Tue, 3 Dec 2024 00:14:56 +0530 Subject: [PATCH] nixos/ananicy: fix eval when hardened kernel is used with ananicy-cpp --- nixos/modules/services/misc/ananicy.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/ananicy.nix b/nixos/modules/services/misc/ananicy.nix index 2129868a2919..5731f93ae50a 100644 --- a/nixos/modules/services/misc/ananicy.nix +++ b/nixos/modules/services/misc/ananicy.nix @@ -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