trying this again
This commit is contained in:
parent
dd1418b55a
commit
ff7a37a433
2 changed files with 36 additions and 0 deletions
17
modules/fedi/akkoma-fe.nix
Normal file
17
modules/fedi/akkoma-fe.nix
Normal file
|
@ -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
|
||||||
|
''
|
19
modules/fedi/styles.json
Normal file
19
modules/fedi/styles.json
Normal file
|
@ -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"
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue