From c8676f8395b10dca3ef252ba502e2617eb7f555e Mon Sep 17 00:00:00 2001
From: prescientmoon <git@moonythm.dev>
Date: Sat, 24 Feb 2024 04:19:35 +0100
Subject: [PATCH] Change the way homar assets work

---
 pkgs/homer.nix | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/pkgs/homer.nix b/pkgs/homer.nix
index cd387a5..d50956b 100644
--- a/pkgs/homer.nix
+++ b/pkgs/homer.nix
@@ -23,14 +23,13 @@ let
               text = builtins.toJSON config;
               destination = "/assets/config.yml";
             })
-          ] ++ lib.optional (extraAssets != [ ])
-            (runCommandLocal "homer-assets${nameSuffix}" { }
-              (builtins.concatStringsSep "\n" (map
-                (asset: ''
-                  mkdir -p $out/assets/${dirOf asset}
-                  ln -s ${asset} $out/assets/${asset}
-                '')
-                extraAssets)));
+          ] ++ extraAssets;
+
+          postBuid = lib.concatStringsSep "\n" (map
+            (asset: ''
+              mv $out/${asset} $out/assets/${asset}
+            '')
+            extraAssets);
         };
     };
   };