initial rewrite
This commit is contained in:
parent
1142c6acac
commit
3d63c94742
42 changed files with 234 additions and 8780 deletions
6
hosts/olympus/bastion/containers/common.nix
Normal file
6
hosts/olympus/bastion/containers/common.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
# common container config
|
||||
{ lib, ... }: {
|
||||
# Workaround for bug https://github.com/NixOS/nixpkgs/issues/162686
|
||||
networking.useHostResolvConf = lib.mkForce false;
|
||||
services.resolved.enable = true;
|
||||
}
|
26
hosts/olympus/bastion/containers/default.nix
Normal file
26
hosts/olympus/bastion/containers/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
hostAddress = "10.42.99.1";
|
||||
hostAddress6 = "fc00::1";
|
||||
in {
|
||||
# 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;
|
||||
|
||||
forwardPorts = [
|
||||
|
||||
];
|
||||
};
|
||||
|
||||
# Containers network is
|
||||
# * 10.42.99.0/24
|
||||
# * fc00:x
|
||||
|
||||
containers = {
|
||||
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue