infrastructure/nixos/hosts/olympus/bastion/containers/default.nix

27 lines
451 B
Nix
Raw Normal View History

2024-01-01 14:39:53 +01:00
{ config, lib, ... }:
let
hostAddress = "10.42.99.1";
hostAddress6 = "fc00::1";
in {
2023-12-30 14:47:12 +01:00
# TODO: Loop over subdirs, create nixos container for each
networking.nat = {
enable = true;
internalInterfaces = [ "ve-+" ];
externalInterface = "ens18";
# Lazy IPv6 connectivity for the container
enableIPv6 = true;
2024-01-01 14:39:53 +01:00
forwardPorts = [
];
2023-12-30 14:47:12 +01:00
};
# Containers network is
# * 10.42.99.0/24
# * fc00:x
2024-01-01 14:39:53 +01:00
containers = {
2023-12-30 14:47:12 +01:00
};
}