refac: use lib.mkEnableOption

This commit is contained in:
Dmitriy Pleshevskiy 2023-03-02 18:57:38 +03:00
parent 4d80b3409b
commit 2c57e74818
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985
2 changed files with 2 additions and 10 deletions

View file

@ -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";

View file

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