From 7bd0e4459e7dbb9fe99586428f0002c3c7aad0bd Mon Sep 17 00:00:00 2001 From: kity Date: Thu, 7 Aug 2025 19:11:38 +0200 Subject: [PATCH] why did i tried to use an overlay --- hosts/sisyphe/features/services/akkoma.nix | 24 ++++++++++++---------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/hosts/sisyphe/features/services/akkoma.nix b/hosts/sisyphe/features/services/akkoma.nix index 96c2714..5aef9bd 100644 --- a/hosts/sisyphe/features/services/akkoma.nix +++ b/hosts/sisyphe/features/services/akkoma.nix @@ -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 {