mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-11-22 17:01:57 +01:00
fix nitter ???!??
This commit is contained in:
parent
b25bdd94a0
commit
d5a1e9ce50
13
modules/services/nitter-age-check.patch
Normal file
13
modules/services/nitter-age-check.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/auth.nim b/src/auth.nim
|
||||
index b288c50..de1b1d8 100644
|
||||
--- a/src/auth.nim
|
||||
+++ b/src/auth.nim
|
||||
@@ -202,7 +202,7 @@ proc initAccountPool*(cfg: Config; path: string) =
|
||||
quit 1
|
||||
|
||||
let accountsPrePurge = accountPool.len
|
||||
- accountPool.keepItIf(not it.hasExpired)
|
||||
+ #accountPool.keepItIf(not it.hasExpired)
|
||||
|
||||
log "Successfully added ", accountPool.len, " valid accounts."
|
||||
if accountsPrePurge > accountPool.len:
|
@ -1,4 +1,4 @@
|
||||
{ config, lib, pkgs, options, ... }:
|
||||
{ config, lib, pkgs, options, inputs, ... }:
|
||||
|
||||
# heavily references https://github.com/erdnaxe/nixos-modules/blob/master/services/nitter.nix
|
||||
|
||||
@ -29,11 +29,21 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
# force unstable
|
||||
disabledModules = [ "services/misc/nitter.nix" ];
|
||||
imports = [
|
||||
"${inputs.nixpkgs-unstable}/nixos/modules/services/misc/nitter.nix"
|
||||
];
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services = {
|
||||
nitter = {
|
||||
enable = true;
|
||||
package = pkgs.nitter;
|
||||
package = pkgs.unstable.nitter.overrideAttrs (old: {
|
||||
patches = old.patches ++ [
|
||||
./nitter-age-check.patch
|
||||
];
|
||||
});
|
||||
config = {
|
||||
proxy = ""; # https://github.com/NixOS/nixpkgs/issues/235359
|
||||
};
|
||||
|
@ -1,12 +0,0 @@
|
||||
self: super: {
|
||||
nitter = super.nitter.overrideAttrs (old: {
|
||||
# https://github.com/zedeus/nitter/pull/830
|
||||
version = "unstable-2023-05-31";
|
||||
src = super.fetchFromGitHub {
|
||||
owner = "zedeus";
|
||||
repo = "nitter";
|
||||
rev = "38985af6ed30f050201b15425cdac0dc2e286b6d";
|
||||
hash = "sha256-YPwApMCsra/T5EzCup28/4FaOrhEuw3MBiitv+LTbi0=";
|
||||
};
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user