blogs: microvmify

This commit is contained in:
Astro 2022-06-20 00:06:32 +02:00
parent 8e3b6ab275
commit 2556173bd0
2 changed files with 6 additions and 7 deletions

View File

@ -621,7 +621,7 @@
blogs = nixosSystem' {
modules = [
self.nixosModules.plume
./config/lxc-container.nix
self.nixosModules.microvm
./hosts/containers/blogs
{ sops.defaultSopsFile = "${secrets}/hosts/blogs/secrets.yaml"; }
];

View File

@ -1,13 +1,12 @@
{ hostRegistry, zentralwerk, config, ... }:
{
microvm.mem = 2048;
c3d2.deployment = {
server = "server10";
mounts = [ "etc" "home" "var"];
};
networking = {
hostName = "blogs";
useNetworkd = true;
interfaces.eth0.ipv4.addresses = [{
address = config.c3d2.hosts."${config.networking.hostName}".ip4;
prefixLength = zentralwerk.lib.config.site.net.serv.subnet4Len;
}];
defaultGateway = "172.20.73.1";
firewall.allowedTCPPorts = [
80 443
];