this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

add more matrix bridges through flake input

+174 -7
+91 -7
flake.lock
··· 67 67 "type": "github" 68 68 } 69 69 }, 70 + "devshell": { 71 + "locked": { 72 + "lastModified": 1642188268, 73 + "narHash": "sha256-DNz4xScpXIn7rSDohdayBpPR9H9OWCMDOgTYegX081k=", 74 + "owner": "numtide", 75 + "repo": "devshell", 76 + "rev": "696acc29668b644df1740b69e1601119bf6da83b", 77 + "type": "github" 78 + }, 79 + "original": { 80 + "owner": "numtide", 81 + "repo": "devshell", 82 + "type": "github" 83 + } 84 + }, 70 85 "dirt-samples-src": { 71 86 "flake": false, 72 87 "locked": { ··· 132 147 "owner": "edolstra", 133 148 "repo": "flake-compat", 134 149 "rev": "b4a34015c698c7793d592d66adbab377907a2be8", 150 + "type": "github" 151 + }, 152 + "original": { 153 + "owner": "edolstra", 154 + "repo": "flake-compat", 155 + "type": "github" 156 + } 157 + }, 158 + "flake-compat_3": { 159 + "flake": false, 160 + "locked": { 161 + "lastModified": 1641205782, 162 + "narHash": "sha256-4jY7RCWUoZ9cKD8co0/4tFARpWB+57+r1bLLvXNJliY=", 163 + "owner": "edolstra", 164 + "repo": "flake-compat", 165 + "rev": "b7547d3eed6f32d06102ead8991ec52ab0a4f1a7", 135 166 "type": "github" 136 167 }, 137 168 "original": { ··· 260 291 "type": "github" 261 292 } 262 293 }, 294 + "nix-matrix-appservices": { 295 + "inputs": { 296 + "devshell": "devshell", 297 + "flake-compat": "flake-compat_3", 298 + "nixlib": "nixlib", 299 + "nixpkgs": "nixpkgs" 300 + }, 301 + "locked": { 302 + "lastModified": 1663958238, 303 + "narHash": "sha256-l4VrBCswq500YwsgjK7M8HUmnVWrHYY7DKZ7uZK5Abg=", 304 + "owner": "coffeetables", 305 + "repo": "nix-matrix-appservices", 306 + "rev": "efdc09f26e3b01801edaa3b0e2bdd46d9d133bba", 307 + "type": "gitlab" 308 + }, 309 + "original": { 310 + "owner": "coffeetables", 311 + "repo": "nix-matrix-appservices", 312 + "type": "gitlab" 313 + } 314 + }, 315 + "nixlib": { 316 + "locked": { 317 + "lastModified": 1643502816, 318 + "narHash": "sha256-Wrbt6Gs+hjXD3HUICPBJHKnHEUqiyx8rzHCgvqC1Bok=", 319 + "owner": "divnix", 320 + "repo": "nixpkgs.lib", 321 + "rev": "ebed7ec5bcb5d01e298535989c6c321df18b631a", 322 + "type": "github" 323 + }, 324 + "original": { 325 + "owner": "divnix", 326 + "repo": "nixpkgs.lib", 327 + "type": "github" 328 + } 329 + }, 263 330 "nixpkgs": { 264 331 "locked": { 332 + "lastModified": 1662099760, 333 + "narHash": "sha256-MdZLCTJPeHi/9fg6R9fiunyDwP3XHJqDd51zWWz9px0=", 334 + "owner": "NixOS", 335 + "repo": "nixpkgs", 336 + "rev": "67e45078141102f45eff1589a831aeaa3182b41e", 337 + "type": "github" 338 + }, 339 + "original": { 340 + "owner": "NixOS", 341 + "ref": "nixos-22.05", 342 + "repo": "nixpkgs", 343 + "type": "github" 344 + } 345 + }, 346 + "nixpkgs_2": { 347 + "locked": { 265 348 "lastModified": 1670193339, 266 349 "narHash": "sha256-oHTAhX4p6+uxcabq0rKL4EyKWPbDLGKec88ocPIU/2Y=", 267 350 "owner": "nixos", ··· 276 359 "type": "github" 277 360 } 278 361 }, 279 - "nixpkgs_2": { 362 + "nixpkgs_3": { 280 363 "locked": { 281 364 "lastModified": 1662446902, 282 365 "narHash": "sha256-Dmsd3jSG2ldZUlhFaIwunqgMf14EEK7ylXpw+OPDLxE=", ··· 308 391 }, 309 392 "poonam": { 310 393 "inputs": { 311 - "nixpkgs": "nixpkgs_2", 394 + "nixpkgs": "nixpkgs_3", 312 395 "vimwiki-cli": "vimwiki-cli" 313 396 }, 314 397 "locked": { 315 - "lastModified": 1672200014, 316 - "narHash": "sha256-gJW+GktGJAMmb5WRs2rcUQI673Jx148pWwwejJjIL04=", 398 + "lastModified": 1672372801, 399 + "narHash": "sha256-/Zqrr9zs8z7cpQOsO3VIxVMCV1lvDu/KfPski3q+lRs=", 317 400 "ref": "main", 318 - "rev": "7143809a518037b4ad4ef0762a3e8f42cd99a790", 319 - "revCount": 473, 401 + "rev": "273db2bb490748ad07755421278acec1538b9e5c", 402 + "revCount": 476, 320 403 "type": "git", 321 404 "url": "ssh://gitea@git.sealight.xyz/aynish/kitaab" 322 405 }, ··· 335 418 "grasp": "grasp", 336 419 "hardware": "hardware", 337 420 "home-manager": "home-manager", 338 - "nixpkgs": "nixpkgs", 421 + "nix-matrix-appservices": "nix-matrix-appservices", 422 + "nixpkgs": "nixpkgs_2", 339 423 "nur": "nur", 340 424 "poonam": "poonam", 341 425 "rust-overlay": "rust-overlay",
+4
flake.nix
··· 24 24 basant.inputs.poonam.follows = "poonam"; 25 25 grasp.url = "git+ssh://gitea@git.sealight.xyz/aynish/grasp.git?ref=main"; 26 26 grasp.inputs.nixpkgs.follows = "nixpkgs"; 27 + # Matrix 28 + nix-matrix-appservices.url = "gitlab:coffeetables/nix-matrix-appservices"; 27 29 # Others 28 30 nur.url = "github:nix-community/NUR"; 29 31 rust-overlay = { ··· 55 57 , agenix 56 58 , basant 57 59 , grasp 60 + , nix-matrix-appservices 58 61 , nur 59 62 , tidalcycles 60 63 , rust-overlay ··· 177 180 agenix.nixosModules.age 178 181 self.nixosModules.backup 179 182 self.nixosModules.hesienbridge 183 + nix-matrix-appservices.nixosModule 180 184 home-manager.nixosModules.home-manager 181 185 { 182 186 home-manager.useGlobalPkgs = true;
+1
hosts/profiles/matrix/default.nix
··· 3 3 { 4 4 imports = [ 5 5 ./mautrix-telegram.nix 6 + ./mautrix-services.nix 6 7 # ./mautrix-discord.nix 7 8 # ./mautrix-whatsapp.nix 8 9 # ./mautrix-slack.nix
+49
hosts/profiles/matrix/mautrix-services.nix
··· 1 + { config, lib, pkgs, ... }: 2 + 3 + { 4 + # Mautrix-signal settings 5 + services.signald.enable = true; 6 + systemd.services.matrix-as-signal = { 7 + requires = [ "signald.service" ]; 8 + after = [ "signald.service" ]; 9 + unitConfig = { 10 + JoinsNamespaceOf = "signald.service"; 11 + }; 12 + path = [ 13 + pkgs.ffmpeg # voice messages need `ffmpeg` 14 + ]; 15 + }; 16 + 17 + services.matrix-appservices = { 18 + addRegistrationFiles = false; 19 + homeserverURL = "https://sealight.xyz/"; 20 + homeserverDomain = "sealight.xyz"; 21 + services = { 22 + whatsapp = { 23 + port = 29183; 24 + format = "mautrix-go"; 25 + package = pkgs.mautrix-whatsapp; 26 + }; 27 + 28 + discord = { 29 + port = 29188; 30 + format = "mautrix-go"; 31 + package = pkgs.mautrix-discord; 32 + }; 33 + 34 + signal = { 35 + port = 29184; 36 + format = "mautrix-python"; 37 + package = pkgs.mautrix-signal; 38 + serviceConfig = { 39 + StateDirectory = [ "matrix-as-signal" "signald" ]; 40 + SupplementaryGroups = [ "signald" ]; 41 + }; 42 + settings.signal = { 43 + socket_path = config.services.signald.socketPath; 44 + outgoing_attachment_dir = "/var/lib/signald/tmp"; 45 + }; 46 + }; 47 + }; 48 + }; 49 + }
+29
pkgs/mautrix-discord.nix
··· 1 + { lib, buildGoModule, fetchFromGitHub, olm }: 2 + 3 + buildGoModule rec { 4 + pname = "mautrix-discord"; 5 + version = "unstable-2022-11-04"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "mautrix"; 9 + repo = "discord"; 10 + rev = "f53975cc91e3c643a722adf0d3e0dfb98d0127a2"; 11 + hash = "sha256-xUALcN5oQfwC6gmOeygCkOAXJrJzNitBxHRFAKKgFvE="; 12 + }; 13 + 14 + buildInputs = [ olm ]; 15 + 16 + vendorHash = "sha256-yday2mSnPwuhXWkCG4XY7qoBl3DXHcSvzBoZbjgYz/c="; 17 + 18 + ldflags = [ "-s" "-w" ]; # https://github.com/NixOS/nixpkgs/issues/177698 19 + 20 + doCheck = false; # No tests available 21 + 22 + meta = with lib; { 23 + homepage = "https://go.mau.fi/mautrix-discord"; 24 + description = "Matrix to Discord hybrid puppeting/relaybot bridge"; 25 + license = licenses.agpl3Plus; 26 + maintainers = with maintainers; [ robin ]; 27 + }; 28 + } 29 +