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); }; }; };