23 lines
323 B
Nix
23 lines
323 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
|
|
cfg = config.host.polkit;
|
|
in
|
|
{
|
|
options.host.polkit = {
|
|
enable = mkEnableOption "Polkit configurations for host.";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
security.polkit = {
|
|
enable = true;
|
|
package = pkgs.polkit;
|
|
};
|
|
};
|
|
}
|