From a3ce393c047ecafd0bb9318247dfdc526acef234 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 25 Jan 2025 08:55:23 -0800 Subject: [PATCH] feat(darwin): Wireguard --- modules/darwin/programs/wireguard/default.nix | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/darwin/programs/wireguard/default.nix diff --git a/modules/darwin/programs/wireguard/default.nix b/modules/darwin/programs/wireguard/default.nix new file mode 100644 index 0000000..7b397ec --- /dev/null +++ b/modules/darwin/programs/wireguard/default.nix @@ -0,0 +1,20 @@ +{ + lib, + config, + pkgs, + ... +}: +let + inherit (lib) mkEnableOption mkIf; + + cfg = config.marleyos.programs.wireguard; +in +{ + options.marleyos.programs.wireguard.enable = mkEnableOption "wireguard"; + + config = mkIf cfg.enable { + homebrew.masApps = { + "WireGuard" = 1451685025; + }; + }; +}