ctucx.git: nixfiles

ctucx' nixfiles

commit 087e2dc6f2faa092a6de90158194c4b9e89f6b20
parent e9973a7243c4c7c0d67cff59980b83b7274fcca5
Author: Leah (ctucx) <leah@ctu.cx>
Date: Tue, 13 Sep 2022 19:14:20 +0200

machines/osterei/pleroma: apply the patch as nixpkgs overlay
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/machines/osterei/pleroma/default.nix b/machines/osterei/pleroma/default.nix
@@ -30,11 +30,6 @@
 
     pleroma = {
       enable           = true;
-      package          = pkgs.pleroma.overrideAttrs (old: {
-        patches = [
-          ./0001-PATCH-Separate-webfinger-domain-from-host-domain.patch
-        ];
-      });
       configs          = [ (lib.fileContents ./config.exs) ];
       secretConfigFile = "/var/lib/pleroma/secret.exs";
     };
diff --git a/machines/osterei/pleroma/0001-PATCH-Separate-webfinger-domain-from-host-domain.patch b/pkgs/0001-PATCH-Separate-webfinger-domain-from-host-domain.patch
diff --git a/pkgs/overlays/linux.nix b/pkgs/overlays/linux.nix
@@ -5,6 +5,12 @@
   nixpkgs.overlays = [
     (final: prev: {
 
+      pleroma = prev.pleroma.overrideAttrs (old: {
+        patches = [
+         ../0001-PATCH-Separate-webfinger-domain-from-host-domain.patch
+        ];
+      });
+
     })
   ];