this repo has no description
31
fork

Configure Feed

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

wip: knotmirror

Signed-off-by: Seongmin Lee <git@boltless.me>

+70 -12
+60 -7
flake.lock
··· 96 96 "type": "github" 97 97 } 98 98 }, 99 + "fenix_2": { 100 + "inputs": { 101 + "nixpkgs": [ 102 + "tangled-mirror", 103 + "nixpkgs" 104 + ], 105 + "rust-analyzer-src": "rust-analyzer-src_2" 106 + }, 107 + "locked": { 108 + "lastModified": 1772176312, 109 + "narHash": "sha256-Yjo/QCJvY9GUhAzwac/m6Rx3oxvRyEaiT5DQ5o+T6g4=", 110 + "owner": "nix-community", 111 + "repo": "fenix", 112 + "rev": "92d91250c1acd59beabc51208192adc92f31aeb5", 113 + "type": "github" 114 + }, 115 + "original": { 116 + "owner": "nix-community", 117 + "repo": "fenix", 118 + "type": "github" 119 + } 120 + }, 99 121 "flake-compat": { 100 122 "flake": false, 101 123 "locked": { ··· 405 427 "url": "https://cdn.jsdelivr.net/npm/mermaid@11.12.3/dist/mermaid.min.js" 406 428 } 407 429 }, 430 + "mermaid-src_2": { 431 + "flake": false, 432 + "locked": { 433 + "narHash": "sha256-/YOdECG2V5c3kJ1QfGvhziTT6K/Dx/4mOk2mr3Fs/do=", 434 + "type": "file", 435 + "url": "https://cdn.jsdelivr.net/npm/mermaid@11.12.3/dist/mermaid.min.js" 436 + }, 437 + "original": { 438 + "type": "file", 439 + "url": "https://cdn.jsdelivr.net/npm/mermaid@11.12.3/dist/mermaid.min.js" 440 + } 441 + }, 408 442 "nixery-flake": { 409 443 "flake": false, 410 444 "locked": { ··· 471 505 }, 472 506 "nixpkgs_4": { 473 507 "locked": { 474 - "lastModified": 1766070988, 475 - "narHash": "sha256-G/WVghka6c4bAzMhTwT2vjLccg/awmHkdKSd2JrycLc=", 508 + "lastModified": 1771848320, 509 + "narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=", 476 510 "owner": "nixos", 477 511 "repo": "nixpkgs", 478 - "rev": "c6245e83d836d0433170a16eb185cefe0572f8b8", 512 + "rev": "2fc6539b481e1d2569f25f8799236694180c0993", 479 513 "type": "github" 480 514 }, 481 515 "original": { ··· 512 546 "type": "github" 513 547 } 514 548 }, 549 + "rust-analyzer-src_2": { 550 + "flake": false, 551 + "locked": { 552 + "lastModified": 1772094427, 553 + "narHash": "sha256-TiVs6OUBJEvajHdJZ5nIq0KognNJooUWuLGPFfQacSw=", 554 + "owner": "rust-lang", 555 + "repo": "rust-analyzer", 556 + "rev": "56b59a832858329c2f947f9b7bdf1a49da39c981", 557 + "type": "github" 558 + }, 559 + "original": { 560 + "owner": "rust-lang", 561 + "ref": "nightly", 562 + "repo": "rust-analyzer", 563 + "type": "github" 564 + } 565 + }, 515 566 "sqlite-lib-src": { 516 567 "flake": false, 517 568 "locked": { ··· 617 668 "tangled-mirror": { 618 669 "inputs": { 619 670 "actor-typeahead-src": "actor-typeahead-src_2", 671 + "fenix": "fenix_2", 620 672 "flake-compat": "flake-compat_3", 621 673 "gomod2nix": "gomod2nix_2", 622 674 "htmx-src": "htmx-src_2", ··· 625 677 "indigo": "indigo_2", 626 678 "inter-fonts-src": "inter-fonts-src_2", 627 679 "lucide-src": "lucide-src_2", 680 + "mermaid-src": "mermaid-src_2", 628 681 "nixpkgs": "nixpkgs_4", 629 682 "sqlite-lib-src": "sqlite-lib-src_2" 630 683 }, 631 684 "locked": { 632 - "lastModified": 1772722431, 633 - "narHash": "sha256-4ZpRmrhN2jqZwzQy7f8KcelW2S4bms9+0qoH8YlwkeU=", 685 + "lastModified": 1773570661, 686 + "narHash": "sha256-EQBScacLgMxv4IKYC1O/1r287PrF/M6REZbiyI63baA=", 634 687 "ref": "sl/knotmirror", 635 - "rev": "560f3429c24d62c6cc144f951101d5493c917b82", 636 - "revCount": 2044, 688 + "rev": "022c1a2d556f2d35fb3ce75ee98b2abaa7479862", 689 + "revCount": 2076, 637 690 "type": "git", 638 691 "url": "https://tangled.org/tangled.org/core" 639 692 },
+10 -5
hosts/mirror/services/knotmirror.nix
··· 5 5 services.postgresql = { 6 6 enable = true; 7 7 package = pkgs.postgresql_14; 8 - ensureDatabases = ["mirrordb"]; 8 + ensureDatabases = ["mirror" "tap"]; 9 9 ensureUsers = [ 10 10 { name = "tnglr"; } 11 11 ]; 12 12 authentication = '' 13 - local mirrordb tnglr trust 14 - host mirrordb tnglr 127.0.0.1/32 trust 13 + local all tnglr trust 14 + host all tnglr 127.0.0.1/32 trust 15 15 ''; 16 16 }; 17 17 services.tangled.knotmirror = { 18 18 enable = true; 19 19 package = pkgs.knotmirror; 20 20 listenAddr = "0.0.0.0:7000"; 21 + adminListenAddr = "0.0.0.0:7200"; 21 22 hostname = "mirror.tngl.boltless.me"; 22 - dbUrl = "postgresql://tnglr@127.0.0.1:5432/mirrordb"; 23 + dbUrl = "postgresql://tnglr@127.0.0.1:5432/mirror"; 23 24 fullNetwork = true; 25 + 26 + tap.dbUrl = "postgresql://tnglr@127.0.0.1:5432/tap"; 24 27 }; 25 - networking.firewall.allowedTCPPorts = [7000 7200]; 28 + systemd.services.tap-knotmirror.after = ["postgresql.service"]; 29 + systemd.services.knotmirror.after = ["postgresql.service"]; 30 + networking.firewall.allowedTCPPorts = [7000 7100 7200]; 26 31 }