From 4a64497366da986203d93643820d8e1ce548218c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 21 Mar 2023 01:24:06 +0100 Subject: [PATCH] Fix microvm autostart list --- modules/microvm-host.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/microvm-host.nix b/modules/microvm-host.nix index c6ca0b68..1c64ecae 100644 --- a/modules/microvm-host.nix +++ b/modules/microvm-host.nix @@ -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 = {