System: Add allowedActions option to polkit module
This commit is contained in:
@ -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 = ''
|
||||
|
Reference in New Issue
Block a user