Merge pull request #292437 from deviant/nixos-nixseparatedebuginfod-nix2.3

nixos/nixseparatedebuginfod: fix compatibility with Nix 2.3
This commit is contained in:
Guillaume Girol 2024-03-03 14:12:27 +01:00 committed by GitHub
commit 9887be970b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,7 +90,9 @@ in
users.groups.nixseparatedebuginfod = { };
nix.settings.extra-allowed-users = [ "nixseparatedebuginfod" ];
nix.settings = lib.optionalAttrs (lib.versionAtLeast config.nix.package.version "2.4") {
extra-allowed-users = [ "nixseparatedebuginfod" ];
};
environment.variables.DEBUGINFOD_URLS = "http://${url}";