Bruno BELANYI
9ddd59eac8
One nice thing is that it enables the prompts when using `systemctl`, instead of requiring `sudo`.
17 lines
277 B
Nix
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;
|
|
};
|
|
};
|
|
}
|