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
|
in
|
||||||
{
|
{
|
||||||
options.local.wireguard = with lib; {
|
options.local.wireguard = with lib; {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "Enable wireguard vpn";
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = "Enable wireguard vpn";
|
|
||||||
};
|
|
||||||
ip = mkOption {
|
ip = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = "10.100.0.<num>/24";
|
description = "10.100.0.<num>/24";
|
||||||
|
|
|
@ -22,11 +22,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
git-crypt = {
|
git-crypt = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "Add git-crypt package";
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = "Add git-crypt package";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue