From 83ee488e4c81124380b8bd4ff8183e632f30eb91 Mon Sep 17 00:00:00 2001
From: Daniel Barlow <dan@telent.net>
Date: Tue, 9 Jan 2024 13:10:02 +0000
Subject: [PATCH] systemconfig: /boot needs to go inside /persist

---
 pkgs/systemconfig/default.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgs/systemconfig/default.nix b/pkgs/systemconfig/default.nix
index 129993f57..8ec00aa43 100644
--- a/pkgs/systemconfig/default.nix
+++ b/pkgs/systemconfig/default.nix
@@ -95,7 +95,7 @@ in attrset:
       if test -d $dest/persist; then dest=$dest/persist; fi
       cp -v -fP \$src/bin/* \$src/etc/* \$dest
       ${if attrset ? boot then ''
-        (cd \$prefix && rm ./boot && ln -sf ${lib.strings.removePrefix "/" attrset.boot.target} ./boot)
+        (cd \$dest && rm ./boot && ln -sf ${lib.strings.removePrefix "/" attrset.boot.target} ./boot)
       '' else ""}
       EOF
       chmod +x $out/bin/install