From ff990ea66a031d719eb8b9bae7c52a04b1628138 Mon Sep 17 00:00:00 2001 From: V Date: Mon, 26 Feb 2024 02:49:57 +0100 Subject: nixos/nixseparatedebuginfod: fix compatibility with Nix 2.3 Appending to options with the `extra-` prefix was added in Nix 2.4, which makes config validation fail on this version without the guard. Change-Id: Ie253978dbaf00b228fecc08698a3dcc01cd2d82b --- nixos/modules/services/development/nixseparatedebuginfod.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nixos') diff --git a/nixos/modules/services/development/nixseparatedebuginfod.nix b/nixos/modules/services/development/nixseparatedebuginfod.nix index daf85153d339f..a2ec0d2c80e1f 100644 --- a/nixos/modules/services/development/nixseparatedebuginfod.nix +++ b/nixos/modules/services/development/nixseparatedebuginfod.nix @@ -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}"; -- cgit 1.4.1