fix: pkexec wrapper

This commit is contained in:
FUFSoB committed 2026-09-16 21:49:26 +05:00
1 parent 65fc4a7915
commit e40e79a47f
3 files changed
+10

No files matched your search

+2
View File
@@ -66,6 +66,8 @@ in
rules = guiFixture.config.security.polkit.extraConfig;
in
assert guiFixture.config.security.polkit.enable;
# nixpkgs 26.11+: no setuid pkexec unless asked for, and without it pkexec refuses to run.
assert guiFixture.config.security.wrappers ? pkexec && guiFixture.config.security.wrappers.pkexec.enable;
assert
builtins.match ''.*action\.lookup\("program"\) === "/nix/store/[^"]*proxy-ctl/bin/proxy-ctl".*AUTH_ADMIN_KEEP.*'' rules
!= null;