clear (refactor options): refactor options
This commit is contained in:
parent
00ea2b0c36
commit
bfce36ce73
22 changed files with 340 additions and 463 deletions
|
|
@ -5,20 +5,16 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
|
||||
cfg = config.host.polkit;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
host.polkit = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Polkit configurations for host.";
|
||||
};
|
||||
};
|
||||
options.host.polkit = {
|
||||
enable = mkEnableOption "Polkit configurations for host.";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
config = mkIf cfg.enable {
|
||||
security.polkit = {
|
||||
enable = true;
|
||||
package = pkgs.polkit;
|
||||
|
|
|
|||
Reference in a new issue