Use recursive file writing for startpage

inky
Elnu 2 years ago
parent cd0afe0797
commit 9f7261c890

@ -1,3 +0,0 @@
# Link in generate colors file for testing
# ln -s ~/.startpage/colors.css .
colors.css

@ -7,15 +7,11 @@ let
in
{
home.file = {
"${out}index.html".source = ./index.html;
"${out}" = {
source = ./html;
recursive = true;
};
"${out}colors.css".text = ":root {\n" + (colors.css lib) + "\n}";
"${out}style.css".source = ./style.css;
"${out}anilist.svg".source = ./anilist.svg;
"${out}envelope-regular.svg".source = ./envelope-regular.svg;
"${out}git.svg".source = ./git.svg;
"${out}jellyfin.svg".source = ./jellyfin.svg;
"${out}nyaa.webp".source = ./nyaa.webp;
"${out}nixos.svg".source = ./nixos.svg;
};
# Make files not symlinks, this causes issues displaying in Firefox
home.activation.startpage = lib.hm.dag.entryAfter["writeBoundary"] ''

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Before

Width:  |  Height:  |  Size: 567 B

After

Width:  |  Height:  |  Size: 567 B

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Loading…
Cancel
Save