add wireguard-tools

This commit is contained in:
smayzy
2025-07-16 17:42:37 +02:00
parent 4dc8f7d2a5
commit 080f529395
4 changed files with 20 additions and 0 deletions
+1
View File
@@ -2,5 +2,6 @@
{
imports = [
./mullvad.nix
./wireguard.nix
];
}
+17
View File
@@ -0,0 +1,17 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.wireguard.enable = mkOption {
type = types.bool;
default = false;
description = "wireguard";
};
config = mkIf config.smayzy.wireguard.enable {
environment.systemPackages = with pkgs; [
wireguard-tools
];
};
}