diff --git a/modules/fedi/akkoma-fe.nix b/modules/fedi/akkoma-fe.nix new file mode 100644 index 0000000..19752c0 --- /dev/null +++ b/modules/fedi/akkoma-fe.nix @@ -0,0 +1,17 @@ +{ + runCommand, + akkoma-frontends, + jq, + xorg, +}: +runCommand "akkoma-fe" { + styles = builtins.readFile ./styles.json; + nativeBuildInputs = [jq xorg.lndir]; + passAsFile = ["styles"]; +} '' + mkdir $out + lndir ${akkoma-frontends.akkoma-fe} $out + + rm $out/static/styles.json + cp $config $out/static/styles.json +'' diff --git a/modules/fedi/styles.json b/modules/fedi/styles.json new file mode 100644 index 0000000..1fbc698 --- /dev/null +++ b/modules/fedi/styles.json @@ -0,0 +1,19 @@ +{ + "pleroma-dark": "/static/themes/pleroma-dark.json", + "pleroma-light": "/static/themes/pleroma-light.json", + "pleroma-amoled": [ "Pleroma Dark AMOLED", "#000000", "#111111", "#b0b0b1", "#d8a070", "#aa0000", "#0fa00f", "#0095ff", "#d59500"], + "classic-dark": [ "Classic Dark", "#161c20", "#282e32", "#b9b9b9", "#baaa9c", "#d31014", "#0fa00f", "#0095ff", "#ffa500" ], + "bird": [ "Bird", "#f8fafd", "#e6ecf0", "#14171a", "#0084b8", "#e0245e", "#17bf63", "#1b95e0", "#fab81e"], + "ir-black": [ "Ir Black", "#000000", "#242422", "#b5b3aa", "#ff6c60", "#FF6C60", "#A8FF60", "#96CBFE", "#FFFFB6" ], + "monokai": [ "Monokai", "#272822", "#383830", "#f8f8f2", "#f92672", "#F92672", "#a6e22e", "#66d9ef", "#f4bf75" ], + + "rosepine": "/static/themes/rosepine.json", + "redmond-xx": "/static/themes/redmond-xx.json", + "redmond-xx-se": "/static/themes/redmond-xx-se.json", + "redmond-xxi": "/static/themes/redmond-xxi.json", + "breezy-dark": "/static/themes/breezy-dark.json", + "breezy-light": "/static/themes/breezy-light.json", + "ihatebeingalive": "/static/themes/ihatebeingalive.json", + "paper": "/static/themes/paper.json", + "thekanata": "/static/themes/thekanata.json" +}