From 2c57e748188d74593a7892728473f866427c1048 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 2 Mar 2023 18:57:38 +0300 Subject: [PATCH] refac: use lib.mkEnableOption --- machines/modules/wireguard-client.nix | 6 +----- users/modules/git.nix | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/machines/modules/wireguard-client.nix b/machines/modules/wireguard-client.nix index cd00201..f040163 100644 --- a/machines/modules/wireguard-client.nix +++ b/machines/modules/wireguard-client.nix @@ -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./24"; diff --git a/users/modules/git.nix b/users/modules/git.nix index 039bde1..d76751b 100644 --- a/users/modules/git.nix +++ b/users/modules/git.nix @@ -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"; }; };