1 diff --git a/nixos/modules/config/malloc.nix b/nixos/modules/config/malloc.nix
2 index 5c5752ef515..54ba3048fdb 100644
3 --- a/nixos/modules/config/malloc.nix
4 +++ b/nixos/modules/config/malloc.nix
6 security.apparmor.includes = {
7 "abstractions/base" = ''
8 r /etc/ld-nix.so.preload,
9 - r ${config.environment.etc."ld-nix.so.preload".source},
10 + r ${config.environment.etc."ld-nix.${pkgs.glibc.src.outputHash}.so.preload".source},
11 mr ${providerLibPath},