akkoma: add branding

This commit is contained in:
emily 2024-11-01 15:11:59 +01:00
parent 81842a1f3e
commit e5004ed8fd
Signed by: emily
GPG key ID: F6F4C66207FCF995
4 changed files with 30 additions and 6 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: {
{ config, inputs, pkgs, ... }: {
sops.secrets."services/akkoma/mailerPassword" = {
sopsFile = ../../../secrets/services/akkoma.yaml;
};
@ -35,10 +35,7 @@
<h3>Likes are now florps. The timeline goes sideways.</h3>
'';
extraStatic."images/akkoma-wp.png" = pkgs.fetchurl {
url = "https://kyouma.net/akkoma-wp.avif";
hash = "sha256-p0slibhwLExsGUzCSZHIl6tNm28r4fB3iJsI6peRFRs=";
};
extraStatic."images/sylvia-ritter-15012323.avif" = inputs.florp-branding.packages.${config.nixpkgs.hostPlatform.system}.wallpaper;
extraStatic."favicon.png" = let
rev = "697a8211b0f427a921e7935a35d14bb3e32d0a2c";
@ -184,7 +181,7 @@
":frontend_configurations" = {
pleroma_fe = mkMap {
background = "/images/akkoma-wp.png";
background = "/images/sylvia-ritter-15012323.avif";
collapseMessageWithSubject = true;
hideSiteFavicon = true;
streaming = true;

View file

@ -430,6 +430,26 @@
"type": "github"
}
},
"florp-branding": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1730469723,
"narHash": "sha256-5U2aVAXbzd26f0r4+1fo0F4KTqY5h3z2fV0uDJ9YsMQ=",
"ref": "refs/heads/main",
"rev": "16f4a9c871b5417b9ed17e7666c1b266dd8de464",
"revCount": 1,
"type": "git",
"url": "https://woof.rip/florp/branding.git"
},
"original": {
"type": "git",
"url": "https://woof.rip/florp/branding.git"
}
},
"fromYaml": {
"flake": false,
"locked": {
@ -996,6 +1016,7 @@
"dns": "dns",
"fernglas": "fernglas",
"flake-utils": "flake-utils",
"florp-branding": "florp-branding",
"home-manager": "home-manager",
"hydra": "hydra",
"kyouma-www": "kyouma-www",

View file

@ -21,6 +21,10 @@
url = "github:wobcom/fernglas";
inputs.flake-utils.follows = "flake-utils";
};
florp-branding = {
url = "git+https://woof.rip/florp/branding.git";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -21,6 +21,8 @@ in {
inherit src offlineCache;
postPatch = ''
# Build scripts assume to be used within a Git repository checkout
substituteInPlace src/modules/instance.js \
--replace-fail "widenTimeline: true" 'widenTimeline: "50%"'
sed -E -i '/^let commitHash =/,/;$/clet commitHash = "${builtins.substring 0 7 src.rev}";' \
build/webpack.prod.conf.js
'';