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