Compare commits

..

No commits in common. "cf9c46fddc67ea84c5e63ee3efe36baa95c3b831" and "aba25bd45901efe77353985f079052bff3dcd55e" have entirely different histories.

3 changed files with 29 additions and 18 deletions

View file

@ -23,11 +23,6 @@ inputs: final: prev: {
env = old.env // { env = old.env // {
VENCORD_REMOTE = "Vendicated/Vencord"; VENCORD_REMOTE = "Vendicated/Vencord";
VENCORD_HASH = inputs.vencord.shortRev; VENCORD_HASH = inputs.vencord.shortRev;
ESBUILD_BINARY_PATH = prev.lib.getExe prev.esbuild; # 0.25.1
};
pnpmDeps = old.pnpmDeps.overrideAttrs {
outputHash = "sha256-hO6QKRr4jTfesRDAEGcpFeJmGTGLGMw6EgIvD23DNzw=";
}; };
}); });
} }

24
flake.lock generated
View file

@ -92,11 +92,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1743550720, "lastModified": 1741352980,
"narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=", "narHash": "sha256-+u2UunDA4Cl5Fci3m7S643HzKmIDAe+fiXrLqYsR2fs=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "c621e8422220273271f52058f618c94e405bb0f5", "rev": "f4330d22f1c5d2ba72d3d22df5597d123fdb60a9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -132,11 +132,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1743556466, "lastModified": 1743482579,
"narHash": "sha256-rvU79DJ6rPDxiH0sTp686Vlm+JewwAZPGcwt8OfHJbM=", "narHash": "sha256-u81nqA4UuRatKDkzUuIfVYdLMw8birEy+99oXpdyXhY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "5ee44bc7c2e853f144390a12ebe5174ad7e3b9e0", "rev": "c21383b556609ce1ad901aa08b4c6fbd9e0c7af0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -220,11 +220,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1743448293, "lastModified": 1743315132,
"narHash": "sha256-bmEPmSjJakAp/JojZRrUvNcDX2R5/nuX6bm+seVaGhs=", "narHash": "sha256-6hl6L/tRnwubHcA4pfUUtk542wn2Om+D4UnDhlDW9BE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "77b584d61ff80b4cef9245829a6f1dfad5afdfa3", "rev": "52faf482a3889b7619003c0daec593a1912fddc1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -335,11 +335,11 @@
"vencord": { "vencord": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1743565755, "lastModified": 1742560481,
"narHash": "sha256-n5xkOy0CCRKROuicm8rg5tDpvldaSwOvXAsXgBGEXXQ=", "narHash": "sha256-WzmRz0wf/Ss90FmXXp6gaylC0k/k/QkFaFddlnLo+Xk=",
"owner": "Vendicated", "owner": "Vendicated",
"repo": "Vencord", "repo": "Vencord",
"rev": "93f98cee2c4820135acbb010ca4abb17c7f5c064", "rev": "b3bff83dd5040950c55e09bed9e47a60490f81d8",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,23 +1,39 @@
{ {
pkgs,
config, config,
_utils, _utils,
... ...
}: }:
let let
accounts = _utils.setupSingleSecret config "nitterAccounts" { }; accounts = _utils.setupSingleSecret config "nitterAccounts" { };
nitterUpdated = pkgs.nitter.overrideAttrs {
version = "0-unstable-2025-02-26";
src = pkgs.fetchFromGitHub {
owner = "zedeus";
repo = "nitter";
rev = "41fa47bfbf3917e9b3ac4f7b49c89a75a7a2bd44";
hash = "sha256-cmYlmzCJl1405TuYExGw3AOmjdY0r7ObmmLCAom+Fyw=";
};
};
in in
{ {
imports = [ accounts.generate ]; imports = [ accounts.generate ];
services.nitter = { services.nitter = {
enable = true; enable = true;
sessionsFile = accounts.path; package = nitterUpdated;
guestAccounts = accounts.path;
server = { server = {
hostname = "nit.uku.moe"; hostname = "nit.uku.moe";
port = 8081; port = 8081;
}; };
}; };
systemd.services.nitter.environment = {
NITTER_SESSIONS_FILE = "%d/guestAccountsFile";
};
services.nginx.virtualHosts."nit.uku.moe" = { services.nginx.virtualHosts."nit.uku.moe" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;