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

View file

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