From 7868f52c2a0261ce7cb312511ef339d59a9285ad Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Mon, 15 Jun 2026 11:36:14 -0400 Subject: [PATCH] tests: Add regression test for daemonAuthorizationSettings Regression test for extra-trusted-users being ignored https://git.lix.systems/lix-project/lix/issues/1183 Change-Id: I764a6add0215b535fc4abd21b41d1c23b21fc06b --- tests/functional/config.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/functional/config.sh b/tests/functional/config.sh index 46d606d3f..1feb381f7 100644 --- a/tests/functional/config.sh +++ b/tests/functional/config.sh @@ -56,3 +56,10 @@ exp_features=$(nix config show | grep '^experimental-features' | cut -d '=' -f 2 val=$(nix config show | grep '^warn-dirty' | cut -d '=' -f 2 | xargs) val2=$(nix config show warn-dirty) [[ $val == $val2 ]] + +# Regression test for `[extra-]trusted-users` (daemonAuthorizationSettings) being ignored. +# https://git.lix.systems/lix-project/lix/issues/1183 +val="$(NIX_CONFIG=$'trusted-users = as-configured' nix config show trusted-users)" +[[ "$val" == "as-configured" ]] +val="$(NIX_CONFIG=$'trusted-users = as-configured\nextra-trusted-users = extra' nix config show trusted-users)" +[[ "$val" == "as-configured extra" ]]