nix-config/modules/nixos/system/polkit/default.nix

17 lines
277 B
Nix
Raw Normal View History

# Polkit settings
{ config, lib, ... }:
let
cfg = config.my.system.polkit;
in
{
options.my.system.polkit = with lib; {
enable = my.mkDisableOption "polkit configuration";
};
config = lib.mkIf cfg.enable {
security.polkit = {
enable = true;
};
};
}