From cc07964facb381dd20a83209838accfe402b4329 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Sat, 16 Dec 2023 12:54:10 +0000 Subject: [PATCH] nixos/palace: Add `BindsTo=` dependency for river on cellar --- nixos/boxes/home/palace/vms/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/boxes/home/palace/vms/default.nix b/nixos/boxes/home/palace/vms/default.nix index 61c38ba..1b83f4c 100644 --- a/nixos/boxes/home/palace/vms/default.nix +++ b/nixos/boxes/home/palace/vms/default.nix @@ -69,7 +69,8 @@ in { requires = [ vtapUnit ]; - after = [ vtapUnit ]; + after = [ vtapUnit "vm@cellar.service" ]; + bindsTo = [ "vm@cellar.service" ]; preStart = '' until ${pkgs.netcat}/bin/nc -w1 -z ${allAssignments.cellar.hi.ipv4.address} 22; do sleep 1