feat: migrate wireguard

This commit is contained in:
punkfairie 2025-05-25 18:59:39 -07:00
parent 449d972d14
commit 1eba02f65f
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
3 changed files with 16 additions and 20 deletions

View file

@ -2,5 +2,6 @@
imports = [
./fish.nix
./wezterm.nix
./wireguard.nix
];
}

View file

@ -0,0 +1,15 @@
{
lib,
config,
...
}: let
cfg = config.marleyos.programs.wireguard;
in {
options.marleyos.programs.wireguard.enable = lib.mkEnableOption "wireguard";
config = lib.mkIf cfg.enable {
homebrew.masApps = {
"WireGuard" = 1451685025;
};
};
}

View file

@ -1,20 +0,0 @@
{
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;
};
};
}