fix: pkexec wrapper
This commit is contained in:
3 files changed
+10
No files matched your search
@@ -10,6 +10,7 @@
|
||||
|
||||
{
|
||||
config,
|
||||
options,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
@@ -84,6 +85,7 @@ in
|
||||
(import ./service {
|
||||
inherit
|
||||
config
|
||||
options
|
||||
lib
|
||||
pkgs
|
||||
packages
|
||||
|
||||
@@ -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} = {
|
||||
|
||||
Reference in new issue
Block a user