From 73d2501781f74075396df7dc4f37b49b696ff17d Mon Sep 17 00:00:00 2001 From: Val Packett Date: Fri, 5 Dec 2025 04:06:37 -0300 Subject: [PATCH] systemd: use sockets.target This allows using normal nix-managed services that register sockets for lazy activation. Also brings in some red errors about starting services that we don't have, but that will be fixed --- nixosModules/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixosModules/default.nix b/nixosModules/default.nix index 3817d65..7ae6754 100644 --- a/nixosModules/default.nix +++ b/nixosModules/default.nix @@ -72,6 +72,7 @@ in { "local-fs.target" "nss-user-lookup.target" "umount.target" + "sockets.target" "shutdown.target" "reboot.target" "exit.target" @@ -163,6 +164,8 @@ in { description = "microVM Application runner"; onFailure = ["exit.target"]; onSuccess = ["exit.target"]; + wants = ["sockets.target"]; + after = ["sockets.target"]; wantedBy = ["microvm.target"]; serviceConfig = { Type = "exec";