add wireguard-tools
This commit is contained in:
parent
4dc8f7d2a5
commit
080f529395
@ -24,6 +24,7 @@ in
|
||||
webcord.enable = true;
|
||||
sddm.enable = true;
|
||||
mullvad.enable = true;
|
||||
wireguard.enable = true;
|
||||
gui-utilities.enable = true;
|
||||
mouse.enable = true;
|
||||
thunderbird.enable = true;
|
||||
|
||||
@ -24,6 +24,7 @@ in
|
||||
element.enable = true;
|
||||
sddm.enable = true;
|
||||
mullvad.enable = true;
|
||||
wireguard.enable = true;
|
||||
gui-utilities.enable = true;
|
||||
mouse.enable = true;
|
||||
thunderbird.enable = true;
|
||||
|
||||
@ -2,5 +2,6 @@
|
||||
{
|
||||
imports = [
|
||||
./mullvad.nix
|
||||
./wireguard.nix
|
||||
];
|
||||
}
|
||||
|
||||
17
modules/nix/vpn/wireguard.nix
Normal file
17
modules/nix/vpn/wireguard.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user