Change the way homar assets work
This commit is contained in:
parent
335dc4e56a
commit
c8676f8395
|
@ -23,14 +23,13 @@ let
|
||||||
text = builtins.toJSON config;
|
text = builtins.toJSON config;
|
||||||
destination = "/assets/config.yml";
|
destination = "/assets/config.yml";
|
||||||
})
|
})
|
||||||
] ++ lib.optional (extraAssets != [ ])
|
] ++ extraAssets;
|
||||||
(runCommandLocal "homer-assets${nameSuffix}" { }
|
|
||||||
(builtins.concatStringsSep "\n" (map
|
postBuid = lib.concatStringsSep "\n" (map
|
||||||
(asset: ''
|
(asset: ''
|
||||||
mkdir -p $out/assets/${dirOf asset}
|
mv $out/${asset} $out/assets/${asset}
|
||||||
ln -s ${asset} $out/assets/${asset}
|
'')
|
||||||
'')
|
extraAssets);
|
||||||
extraAssets)));
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue