add admin-fe

This commit is contained in:
Charlotte 🦝 Delenk 2022-09-11 19:30:44 +01:00
parent 60e0f1e696
commit 1514eab94d
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
3 changed files with 11 additions and 5 deletions

View file

@ -95,8 +95,11 @@ config :pleroma, :frontends,
primary: %{
"name" => "pleroma-fe",
"ref" => "stable"
},
admin: %{
"name" => "admin-fe",
"ref" => "stable"
}
# TODO: get admin to work
config :web_push_encryption, :vapid_details,
subject: "lotte@chir.rs"

View file

@ -4,10 +4,13 @@ let static_dir = pkgs.stdenvNoCC.mkDerivation {
src = pkgs.emptyDirectory;
nativeBuildInputs = with pkgs; [xorg.lndir];
akkoma_fe = nix-packages.packages.${pkgs.system}.akkoma-fe;
akkoma_admin_fe = nix-packages.packages.${pkgs.system}.akkoma-admin-fe;
dontUnpack = false;
installPhase = ''
mkdir -p $out/frontends/pleroma-fe/stable
lndir $akkoma_fe $out/frontends/pleroma-fe/stable
mkdir -p $out/frontends/admin-fe/stable
lndir $akkoma_admin_fe $out/frontends/admin-fe/stable
'';
};
akkconfig = builtins.replaceStrings ["%AKKOMA_STATIC_DIR%"] ["${static_dir}"] (builtins.readFile ./akkoma.exs);

View file

@ -732,11 +732,11 @@
"steno-dictionaries": "steno-dictionaries"
},
"locked": {
"lastModified": 1662838424,
"narHash": "sha256-rFywebB0evAD7S/d8sGU6rg+BnqHOu8eQ/PtKQs5VRU=",
"lastModified": 1662920450,
"narHash": "sha256-fGJNqR9QlI/BMr4NKORG2p5qjrqFtAKz7h18Wf0IjSA=",
"ref": "main",
"rev": "072eb12d925b958d115ef7ea78bfd76753066780",
"revCount": 236,
"rev": "10a4a2a7e274a9f5bc9133e00aa6b5e68a9832f2",
"revCount": 237,
"type": "git",
"url": "https://git.chir.rs/DarkKirb/nix-packages"
},