Configure container for Wireguard NAT tests
ci / test (push) Failing after 1m16s 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 a6598aca52
2 changed files with 22 additions and 0 deletions

View File

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

View File

@ -0,0 +1,21 @@
{
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;
};
};
}