nix-config/modules/nixos/system/polkit/default.nix
Bruno BELANYI 9ddd59eac8 nixos: system: add polkit
One nice thing is that it enables the prompts when using `systemctl`,
instead of requiring `sudo`.
2023-12-14 11:23:28 +00:00

17 lines
277 B
Nix

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