{ 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; }; }; }