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