Update mastodon to 4.5.6 and remove fedi fetcher
This commit is contained in:
parent
6daef62b60
commit
459ac4c314
5 changed files with 4 additions and 78 deletions
|
|
@ -1,23 +0,0 @@
|
||||||
{ nixpkgs-unstable, ... }:
|
|
||||||
{
|
|
||||||
containers.fedifetcher = {
|
|
||||||
nixpkgs = nixpkgs-unstable;
|
|
||||||
autoStart = true;
|
|
||||||
|
|
||||||
bindMounts = {
|
|
||||||
"/secrets" = {
|
|
||||||
hostPath = "/secrets-fedifetcher";
|
|
||||||
isReadOnly = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = { ... }: {
|
|
||||||
imports = [
|
|
||||||
./fedifetcher.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.useHostResolvConf = true;
|
|
||||||
system.stateVersion = "24.05";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
||||||
{ pkgs, lib, ... }:
|
|
||||||
{
|
|
||||||
# config copied from https://github.com/arachnist/nibylandia/blob/main/nixos/zorigami/default.nix
|
|
||||||
systemd.services.fedifetcher = {
|
|
||||||
path = [ pkgs.fedifetcher ];
|
|
||||||
description = "fetch fedi posts";
|
|
||||||
script = ''
|
|
||||||
fedifetcher
|
|
||||||
'';
|
|
||||||
environment = lib.mapAttrs' (n: v:
|
|
||||||
(lib.nameValuePair ("ff_" + builtins.replaceStrings [ "-" ] [ "_" ] n)
|
|
||||||
(builtins.toString v))) {
|
|
||||||
server = "social.nekover.se";
|
|
||||||
state-dir = "/var/lib/fedifetcher";
|
|
||||||
lock-file = "/run/fedifetcher/fedifetcher.lock";
|
|
||||||
from-lists = 1;
|
|
||||||
from-notifications = 1;
|
|
||||||
max-bookmarks = 80;
|
|
||||||
max-favourites = 40;
|
|
||||||
max-follow-requests = 80;
|
|
||||||
max-followers = 80;
|
|
||||||
max-followings = 80;
|
|
||||||
remember-hosts-for-days = 30;
|
|
||||||
remember-users-for-hours = 168;
|
|
||||||
reply-interval-in-hours = 2;
|
|
||||||
};
|
|
||||||
serviceConfig = {
|
|
||||||
DynamicUser = true;
|
|
||||||
User = "fedifetcher";
|
|
||||||
RuntimeDirectory = "fedifetcher";
|
|
||||||
RuntimeDirectoryPreserve = true;
|
|
||||||
StateDirectory = "fedifetcher";
|
|
||||||
UMask = "0077";
|
|
||||||
EnvironmentFile = [ "/secrets/mastodon-fedifetcher-access-token.secret" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.timers.fedifetcher = {
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
timerConfig = { OnCalendar = "*:0/5"; };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -5,6 +5,5 @@
|
||||||
./mastodon.nix
|
./mastodon.nix
|
||||||
./opensearch.nix
|
./opensearch.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./containers/fedifetcher
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
let
|
let
|
||||||
tangerineUI = pkgs.fetchgit {
|
tangerineUI = pkgs.fetchgit {
|
||||||
url = "https://github.com/nileane/TangerineUI-for-Mastodon.git";
|
url = "https://github.com/nileane/TangerineUI-for-Mastodon.git";
|
||||||
rev = "v2.5.2";
|
rev = "v2.5.3";
|
||||||
hash = "sha256-RJPP3QynE42cr9Km8twyZrHiZnhMdNcYOOJ7nW0mx1c=";
|
hash = "sha256-fs/pwIwXZvSNVmlSG304CMT/hSW/RtrzraMsrhg/TbE=";
|
||||||
};
|
};
|
||||||
mastodonModern = pkgs.fetchgit {
|
mastodonModern = pkgs.fetchgit {
|
||||||
url = "https://git.gay/freeplay/Mastodon-Modern.git";
|
url = "https://git.gay/freeplay/Mastodon-Modern.git";
|
||||||
|
|
@ -16,14 +16,14 @@ let
|
||||||
};
|
};
|
||||||
mastodonNekoverseOverlay = final: prev: {
|
mastodonNekoverseOverlay = final: prev: {
|
||||||
mastodon = (prev.mastodon.override rec {
|
mastodon = (prev.mastodon.override rec {
|
||||||
version = "4.5.2";
|
version = "4.5.6";
|
||||||
srcOverride = final.applyPatches {
|
srcOverride = final.applyPatches {
|
||||||
src = pkgs.stdenv.mkDerivation {
|
src = pkgs.stdenv.mkDerivation {
|
||||||
name = "mastodonWithThemes";
|
name = "mastodonWithThemes";
|
||||||
src = pkgs.fetchgit {
|
src = pkgs.fetchgit {
|
||||||
url = "https://github.com/mastodon/mastodon.git";
|
url = "https://github.com/mastodon/mastodon.git";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-LePly+CcM+Dv6ipX9jIWWKhy2PiF1j8vgc9CXn2o+DQ=";
|
sha256 = "sha256-m2LDNyv2jxsp5zPKOfQWvtBG8bD8iuBWBEoz+L0OvNk=";
|
||||||
};
|
};
|
||||||
# mastodon ships with broken symlinks, disable the check for that for now
|
# mastodon ships with broken symlinks, disable the check for that for now
|
||||||
dontCheckForBrokenSymlinks = true;
|
dontCheckForBrokenSymlinks = true;
|
||||||
|
|
|
||||||
|
|
@ -57,13 +57,5 @@
|
||||||
permissions = "0640";
|
permissions = "0640";
|
||||||
uploadAt = "pre-activation";
|
uploadAt = "pre-activation";
|
||||||
};
|
};
|
||||||
"mastodon-fedifetcher-access-token.secret" = {
|
|
||||||
keyCommand = keyCommandEnv ++ [ "pass" "mastodon/fedifetcher-access-token" ];
|
|
||||||
destDir = "/secrets-fedifetcher";
|
|
||||||
user = "root";
|
|
||||||
group = "root";
|
|
||||||
permissions = "0640";
|
|
||||||
uploadAt = "pre-activation";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue