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