ssh
This commit is contained in:
parent
0057730958
commit
bdcb1791ad
7 changed files with 52 additions and 40 deletions
|
|
@ -1,11 +1,10 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
{ config, lib, ... }: {
|
||||
options.server.wireguard-bridge.enable = lib.mkEnableOption "Enables Wireguard host functionality";
|
||||
options.server.wireguard-bridge.ip = lib.mkOption { };
|
||||
|
||||
config = lib.mkIf config.server.wireguard-bridge.enable {
|
||||
sops.secrets."wireguard/bridge/private" = {
|
||||
sopsFile = ../hosts/${config.networking.hostName}/secrets/default.yaml;
|
||||
sopsFile = ../hosts/${config.networking.hostName}/secrets/networking.yaml;
|
||||
};
|
||||
networking.firewall.allowedUDPPorts = [ 51821 ];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue