Configure container for Wireguard NAT tests
ci / test (push) Failing after 2m52s Details
ci / deploy (push) Has been skipped Details

This commit is contained in:
Ciapa 2024-02-04 19:38:04 +01:00
parent 7a704851c0
commit ea047147b9
2 changed files with 23 additions and 0 deletions

View File

@ -3,6 +3,7 @@ let
utils = import ../../util/include.nix { lib = lib; };
imports =
(utils.includeDir ./services) ++
(utils.includeDir ./containers) ++
[
./hardware-configuration.nix
./networking.nix

View File

@ -0,0 +1,22 @@
{ lib, ... }:
{
containers.test = {
autoStart = true;
privateNetwork = true;
hostAddress = "192.168.100.10";
localAddress = "192.168.100.11";
config = { config, pkgs, ... }: {
system.stateVersion = "24.05";
networking = {
firewall = {
enable = true;
allowedTCPPorts = [ 80 ];
};
useHostResolvConf = lib.mkForce false;
};
services.resolved.enable = true;
};
};
}