1

System: Add allowedActions option to polkit module

This commit is contained in:
2025-06-10 23:43:25 +02:00
parent a4b389d652
commit 9ba76cf934
3 changed files with 67 additions and 13 deletions

View File

@ -7,7 +7,18 @@ with lib;
with mylib.modules; {
enable = mkEnableOption "Polkit";
allowed-system-services = mkOption {
allowedActions = mkOption {
type = types.listOf types.str;
description = "Actions that should be manageable by a User without Root Password";
example = ''
[
"org.freedesktop.NetworkManager.settings.modify.system"
]
'';
default = [];
};
allowedSystemServices = mkOption {
type = types.listOf types.str;
description = "System Services that should be manageable by a User without Root Password";
example = ''