dn42: microvmify
This commit is contained in:
parent
137769da25
commit
d11b860e52
|
@ -456,7 +456,7 @@
|
|||
|
||||
dn42 = nixosSystem' {
|
||||
modules = [
|
||||
./config/lxc-container.nix
|
||||
self.nixosModules.microvm
|
||||
./hosts/containers/dn42
|
||||
{
|
||||
nixpkgs.overlays = [ secrets.overlays.dn42 ];
|
||||
|
|
|
@ -11,20 +11,29 @@ in {
|
|||
# No Firewalling!
|
||||
firewall.enable = false;
|
||||
useDHCP = false;
|
||||
interfaces.eth0 = {
|
||||
interfaces.ens3 = {
|
||||
ipv4.addresses = [{
|
||||
address = address4;
|
||||
prefixLength = 24;
|
||||
}];
|
||||
};
|
||||
defaultGateway = "172.22.99.4";
|
||||
};
|
||||
services.resolved.enable = false;
|
||||
c3d2 = {
|
||||
isInHq = true;
|
||||
hq = {
|
||||
interface = "eth0";
|
||||
interface = "ens3";
|
||||
statistics.enable = true;
|
||||
};
|
||||
deployment = {
|
||||
server = "server10";
|
||||
mounts = [ "etc" "home" "var"];
|
||||
interfaces = [ {
|
||||
net = "c3d2";
|
||||
mac = "FE:60:4B:B4:4E:38";
|
||||
} ];
|
||||
};
|
||||
};
|
||||
services.collectd.plugins.exec =
|
||||
let
|
||||
|
@ -173,7 +182,7 @@ in {
|
|||
|
||||
protocol static hq4 {
|
||||
ipv4;
|
||||
route 172.22.99.0/24 via "eth0";
|
||||
route 172.22.99.0/24 via "ens3";
|
||||
}
|
||||
|
||||
protocol static hq6 {
|
||||
|
|
Loading…
Reference in New Issue