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