feat(darwin): Wireguard
This commit is contained in:
parent
14bc449701
commit
a3ce393c04
1 changed files with 20 additions and 0 deletions
20
modules/darwin/programs/wireguard/default.nix
Normal file
20
modules/darwin/programs/wireguard/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue