From 0e1d9a1d3503442f2d3ced05611055642efc418d Mon Sep 17 00:00:00 2001
From: Dmitriy Pleshevskiy <dmitriy@pleshevski.ru>
Date: Fri, 14 Mar 2025 02:20:48 +0300
Subject: [PATCH] flake: fix condition in deploy command

---
 flake.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flake.nix b/flake.nix
index 7ef076b..3058a3a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -151,7 +151,7 @@
                 (hostname: machine: pkgs.writeShellScript "deploy/${hostname}" ''
                   ${lib.getExe (machineRebuild machine)} switch \
                     --flake .#${hostname} \
-                    ${lib.optionalString (system != machine.system) ''--build-host root@${machine.config.deployment.targetHost} \''}
+                    ${lib.optionalString (system != machine.config.deployment.system) ''--build-host root@${machine.config.deployment.targetHost} \''}
                     --target-host root@${machine.config.deployment.targetHost} \
                     $@
                 '')