Fix microvm autostart list

pull/115/head
Sandro - 2 months ago
parent 921ec886f6
commit 4a64497366
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

@ -8,14 +8,10 @@
};
config = {
# just all the microvms from this flake
# that are supposed to run on the server
# just all the microvms from this flake that are supposed to run on the server
microvm.autostart =
builtins.filter (name:
let
inherit (self.nixosConfigurations.${name}) config;
in
(config.c3d2.deployment.server or null) == config.networking.hostName
(self.nixosConfigurations.${name}.config.c3d2.deployment.server or null) == config.networking.hostName
) (builtins.attrNames self.nixosConfigurations);
systemd.services = {

Loading…
Cancel
Save