This repository has been archived on 2025-10-08. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
nixos-config/options/host/polkit.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;
};
};
}