refac: use lib.mkEnableOption
This commit is contained in:
parent
4d80b3409b
commit
2c57e74818
2 changed files with 2 additions and 10 deletions
|
@ -12,11 +12,7 @@ let
|
|||
in
|
||||
{
|
||||
options.local.wireguard = with lib; {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Enable wireguard vpn";
|
||||
};
|
||||
enable = mkEnableOption "Enable wireguard vpn";
|
||||
ip = mkOption {
|
||||
type = types.str;
|
||||
description = "10.100.0.<num>/24";
|
||||
|
|
|
@ -22,11 +22,7 @@ in
|
|||
};
|
||||
|
||||
git-crypt = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Add git-crypt package";
|
||||
};
|
||||
enable = mkEnableOption "Add git-crypt package";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue