disable containers for now
This commit is contained in:
parent
ee41777c7e
commit
f409d9849c
7 changed files with 29 additions and 35 deletions
6
nixos/hosts/olympus/bastion/containers/common.nix
Normal file
6
nixos/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;
|
||||
}
|
|
@ -1,4 +1,8 @@
|
|||
{ lib, ... }: {
|
||||
{ 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;
|
||||
|
@ -6,25 +10,17 @@
|
|||
externalInterface = "ens18";
|
||||
# Lazy IPv6 connectivity for the container
|
||||
enableIPv6 = true;
|
||||
|
||||
forwardPorts = [
|
||||
|
||||
];
|
||||
};
|
||||
|
||||
# Containers network is
|
||||
# * 10.42.99.0/24
|
||||
# * fc00:x
|
||||
|
||||
containers.monitoring = {
|
||||
autoStart = true;
|
||||
privateNetwork = true;
|
||||
hostAddress = "10.42.99.1";
|
||||
localAddress = "10.42.99.2";
|
||||
hostAddress6 = "fc00::1";
|
||||
localAddress6 = "fc00::2";
|
||||
containers = {
|
||||
|
||||
config = {
|
||||
imports = [ ./monitoring ];
|
||||
# Workaround for bug https://github.com/NixOS/nixpkgs/issues/162686
|
||||
networking.useHostResolvConf = lib.mkForce false;
|
||||
services.resolved.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
./grafana.nix
|
||||
];
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{ config, pkgs, ... }: {
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
domain = "grafana.olympus";
|
||||
port = 80;
|
||||
addr = "0.0.0.0";
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ config.services.grafana.port ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue