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

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