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
@@ -10,6 +10,7 @@
{
config,
options,
lib,
pkgs,
...
@@ -84,6 +85,7 @@ in
(import ./service {
inherit
config
options
lib
pkgs
packages
+6
View File
@@ -1,6 +1,7 @@
# Assembles proxy-suite systemd services from the sub-modules.
{
config,
options,
lib,
pkgs,
packages,
@@ -136,6 +137,11 @@ let
in
lib.mkMerge [
autoProxyUnits
# The GUI's pkexec needs its setuid wrapper, off by default since nixpkgs 26.11 (and
# always there before, where the option does not exist).
(lib.optionalAttrs (options.security.polkit ? enablePkexecWrapper) {
security.polkit.enablePkexecWrapper = lib.mkIf (cfg.enable && cfg.gui.enable) true;
})
{
# See constants.serviceUser.
users.users.${constants.serviceUser} = {