sdrweb: microvmify
This commit is contained in:
parent
81e5d603e6
commit
43ca19b644
|
@ -587,7 +587,7 @@
|
||||||
|
|
||||||
sdrweb = nixosSystem' {
|
sdrweb = nixosSystem' {
|
||||||
modules = [
|
modules = [
|
||||||
./config/lxc-container.nix
|
self.nixosModules.microvm
|
||||||
{ nixpkgs.overlays = [ secrets.overlays.mucbot ]; }
|
{ nixpkgs.overlays = [ secrets.overlays.mucbot ]; }
|
||||||
heliwatch.nixosModules.heliwatch
|
heliwatch.nixosModules.heliwatch
|
||||||
./hosts/containers/sdrweb
|
./hosts/containers/sdrweb
|
||||||
|
|
|
@ -1,17 +1,16 @@
|
||||||
{ zentralwerk, config, pkgs, ... }:
|
{ zentralwerk, config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
microvm.mem = 4096;
|
||||||
c3d2 = {
|
c3d2 = {
|
||||||
isInHq = false;
|
isInHq = false;
|
||||||
hq.statistics.enable = true;
|
hq.statistics.enable = true;
|
||||||
|
deployment = {
|
||||||
|
server = "server10";
|
||||||
|
mounts = [ "etc" "home" "var"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostName = "sdrweb";
|
networking.hostName = "sdrweb";
|
||||||
networking.useNetworkd = true;
|
|
||||||
networking.interfaces.eth0.ipv4.addresses = [{
|
|
||||||
address = config.c3d2.hosts."${config.networking.hostName}".ip4;
|
|
||||||
prefixLength = zentralwerk.lib.config.site.net.serv.subnet4Len;
|
|
||||||
}];
|
|
||||||
networking.defaultGateway = "172.20.73.1";
|
|
||||||
|
|
||||||
# http https
|
# http https
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|
Loading…
Reference in New Issue