mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-09 07:00:21 +02:00
why did i tried to use an overlay
This commit is contained in:
parent
bf56f19574
commit
7bd0e4459e
1 changed files with 13 additions and 11 deletions
|
@ -26,19 +26,8 @@ let
|
|||
"${theme}": "/static/themes/${theme}.json"
|
||||
}
|
||||
'';
|
||||
akkoma-overlay = self: super: {
|
||||
akkoma-fe = super.akkoma-fe.overrideAttrs (old: {
|
||||
postInstall = ''
|
||||
cp ${themeSrc} $out/static/themes/${theme}.json
|
||||
cp ${pkgs.writeText "styles.json" styles} $out/static/themes
|
||||
cp ${tosFile} $out/static/terms-of-service.html
|
||||
'';
|
||||
|
||||
});
|
||||
};
|
||||
in
|
||||
{
|
||||
nixpkgs.overlays = [ akkoma-overlay ];
|
||||
services.akkoma.enable = true;
|
||||
services.akkoma.initDb.enable = true;
|
||||
services.akkoma.config = {
|
||||
|
@ -75,6 +64,19 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
services.akkoma.frontends.primary.package =
|
||||
pkgs.runCommand "akkoma-fe"
|
||||
{
|
||||
|
||||
}
|
||||
''
|
||||
mkdir $out
|
||||
lndir ${pkgs.akkoma-frontends.akkoma-fe} $out
|
||||
|
||||
cp ${themeSrc} $out/static/themes/${theme}.json
|
||||
cp ${pkgs.writeText "styles.json" styles} $out/static/themes
|
||||
cp ${tosFile} $out/static/terms-of-service.html
|
||||
'';
|
||||
|
||||
services.caddy.virtualHosts."http://${pleromaUrl}".extraConfig = ''
|
||||
log {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue