27 lines
393 B
Nix
27 lines
393 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.host.polkit;
|
|
in
|
|
{
|
|
options = {
|
|
host.polkit = {
|
|
enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
description = "Polkit configurations for host.";
|
|
};
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
security.polkit = {
|
|
enable = true;
|
|
package = pkgs.polkit;
|
|
};
|
|
};
|
|
}
|