[vpn] init wireguard
All checks were successful
Evaluate Hydra Jobs / eval-hydra-jobs (push) Successful in 3m57s

This commit is contained in:
2024-12-17 23:04:50 +01:00
parent bf2c801597
commit b6aef85860
2 changed files with 9 additions and 1 deletions

View File

@@ -5,7 +5,7 @@
ips = [ "10.100.0.1/24" ]; ips = [ "10.100.0.1/24" ];
allowedIPs = [ "10.100.0.0/24" ]; allowedIPs = [ "10.100.0.0/24" ];
listenPort = 51821; listenPort = 51821;
publicKey = ""; publicKey = "hF9H10Y8Ar7zvZXFoNM8LSoaYFgPCXv30c54SSEucX4=";
}; };
"fanny" = { "fanny" = {

View File

@@ -3,6 +3,8 @@
with lib; with lib;
{ {
sops.secrets.wg_private = {};
networking = { networking = {
hostName = mkDefault "vpn"; hostName = mkDefault "vpn";
useDHCP = false; useDHCP = false;
@@ -15,6 +17,12 @@ with lib;
../modules/minimal_tools.nix ../modules/minimal_tools.nix
]; ];
services.malobeo.vpn = {
enable = true;
name = "vpn";
privateKey = config.sops.secrets.wg_private.path;
};
system.stateVersion = "22.11"; # Did you read the comment? system.stateVersion = "22.11"; # Did you read the comment?
} }