nncp: microvmify

This commit is contained in:
Astro 2022-06-20 00:41:20 +02:00
parent cb12be2f0f
commit 3424512dfe
2 changed files with 14 additions and 4 deletions

View File

@ -423,8 +423,8 @@
nncp = nixosSystem' {
modules = [
self.nixosModules.microvm
self.nixosModules.nncp
./config/lxc-container.nix
./hosts/containers/nncp
];
};

View File

@ -3,9 +3,19 @@
{
imports = [ ./neighbours.nix ];
microvm.interfaces = [ {
type = "tap";
id = "c3d2-nncp";
mac = "de:ec:9a:6f:3f:63";
} ];
c3d2.mergeNncpSettings = false;
c3d2.hq.statistics.enable = true;
c3d2.autoUpdate = true;
c3d2.deployment = {
server = "server10";
mounts = [ "etc" "home" "var"];
autoNetSetup = false;
};
networking = {
hostName = "nncp";
@ -16,8 +26,8 @@
enable = true;
secrets = [ "/etc/nncp.secrets" ];
settings = {
mcd-listen = [ "eth0" ];
mcd-send.eth0 = 60;
mcd-listen = [ "c3d2" ];
mcd-send.c3d2 = 60;
neigh = # use c3d2.nncp.neigh but remove this node
let
hourlyCall = {