mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 06:26:14 -05:00
fix(nixos): enable the privileged pkexec wrapper
This commit is contained in:
4 files changed
+28
-7
No files matched your search
@@ -304,6 +304,7 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
@@ -326,6 +327,11 @@
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
services.ayatana-indicators.enable = lib.mkDefault true;
|
||||
security.polkit = {
|
||||
enable = true;
|
||||
} // lib.optionalAttrs (options.security.polkit ? enablePkexecWrapper) {
|
||||
enablePkexecWrapper = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
|
||||
Reference in new issue
Block a user