fix(nixos): enable the privileged pkexec wrapper

This commit is contained in:
Kevin Yue committed 2026-10-07 19:39:40 +08:00
1 parent 0e1e0486d6
commit 8ebe2973b8
4 files changed
+28 -7

No files matched your search

+6
View File
@@ -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