From de23e02b553806af74a2303f39642fae16cfaf95 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 16 Jun 2022 21:38:53 +0200 Subject: [PATCH] spaceapi: microvmify --- flake.nix | 2 +- hosts/containers/spaceapi/default.nix | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index fef0ffc9..8734009c 100644 --- a/flake.nix +++ b/flake.nix @@ -516,7 +516,7 @@ spaceapi = nixosSystem' { modules = [ - ./config/lxc-container.nix + self.nixosModules.microvm "${spacemsg}/spaceapi/module.nix" ./hosts/containers/spaceapi ]; diff --git a/hosts/containers/spaceapi/default.nix b/hosts/containers/spaceapi/default.nix index af6803ea..0745d08e 100644 --- a/hosts/containers/spaceapi/default.nix +++ b/hosts/containers/spaceapi/default.nix @@ -1,5 +1,14 @@ { zentralwerk, ... }: { + c3d2.deployment = { + server = "server10"; + mounts = [ "etc" "var"]; + interfaces = [ { + net = "serv"; + mac = "16:57:AD:93:62:E9"; + } ]; + }; + networking.hostName = "spaceapi"; networking.interfaces.eth0.ipv4.addresses = [{ address = "172.20.73.25";