sdrweb: microvmify

This commit is contained in:
Astro 2022-06-19 22:29:08 +02:00
parent 81e5d603e6
commit 43ca19b644
2 changed files with 6 additions and 7 deletions

View File

@ -587,7 +587,7 @@
sdrweb = nixosSystem' {
modules = [
./config/lxc-container.nix
self.nixosModules.microvm
{ nixpkgs.overlays = [ secrets.overlays.mucbot ]; }
heliwatch.nixosModules.heliwatch
./hosts/containers/sdrweb

View File

@ -1,17 +1,16 @@
{ zentralwerk, config, pkgs, ... }:
{
microvm.mem = 4096;
c3d2 = {
isInHq = false;
hq.statistics.enable = true;
deployment = {
server = "server10";
mounts = [ "etc" "home" "var"];
};
};
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
networking.firewall.allowedTCPPorts = [ 80 443 ];