theme works but not as default but urgh
This commit is contained in:
parent
da1bd71d73
commit
f0af00e1c2
4 changed files with 21 additions and 8 deletions
|
@ -2,13 +2,21 @@
|
|||
runCommand,
|
||||
akkoma-frontends,
|
||||
xorg,
|
||||
jq,
|
||||
}:
|
||||
runCommand "akkoma-fe" {
|
||||
nativeBuildInputs = [xorg.lndir];
|
||||
runCommand "akkoma_fe" {
|
||||
nativeBuildInputs = [xorg.lndir jq];
|
||||
} ''
|
||||
mkdir $out
|
||||
lndir ${akkoma-frontends.akkoma-fe} $out
|
||||
|
||||
rm $out/static/styles.json
|
||||
cp ${./styles.json} $out/static/styles.json
|
||||
|
||||
rm $out/static/config.json
|
||||
jq -s add ${akkoma-frontends.akkoma-fe}/static/config.json ${./config.json} > $out/static/config.json
|
||||
|
||||
cp ${../../icons/favicon/favicon.png} $out/static/logo.png
|
||||
|
||||
cp ${./rosepine.json} $out/static/themes/rosepine.json
|
||||
''
|
||||
|
|
4
modules/fedi/config.json
Normal file
4
modules/fedi/config.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"theme": "rosepine",
|
||||
"logo": "/static/logo.png"
|
||||
}
|
|
@ -14,13 +14,12 @@
|
|||
blobhaj = pkgs.callPackage ./blobhaj.nix {};
|
||||
blobhajFlags = pkgs.callPackage ./blobhajFlags.nix {};
|
||||
favicon = pkgs.callPackage ./favicon.nix {};
|
||||
rosepine = pkgs.writeText "rosepine.json" ./rosepine.json;
|
||||
in
|
||||
mkIf conf.fedi.enable {
|
||||
services.akkoma = {
|
||||
enable = true;
|
||||
frontends.primary = {
|
||||
name = "akkoma-fe";
|
||||
name = "akkoma_fe";
|
||||
ref = "stable";
|
||||
package = akkoma-fe;
|
||||
};
|
||||
|
@ -35,7 +34,8 @@ in
|
|||
|
||||
":frontend_configurations" = {
|
||||
"akkoma_fe" = {
|
||||
loog = "/static/favicon.png";
|
||||
theme = "rosepine";
|
||||
logo = "/static/logo.png";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -132,7 +132,7 @@ in
|
|||
"emoji/blobhajFlags" = blobhajFlags;
|
||||
|
||||
"static/favicon.png" = favicon;
|
||||
"static/themes/rosepine" = rosepine;
|
||||
"static/logo.png" = favicon;
|
||||
"favicon.png" = favicon;
|
||||
};
|
||||
nginx = {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"_pleroma_theme_version": 2,
|
||||
"theme": {
|
||||
"name": "rosepine",
|
||||
"source": {
|
||||
"themeEngineVersion": 3,
|
||||
"shadows": {
|
||||
"panel": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue