diff --git a/flake.lock b/flake.lock index adcb40b..1f64409 100644 --- a/flake.lock +++ b/flake.lock @@ -263,6 +263,24 @@ "inputs": { "systems": "systems_6" }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_3": { + "inputs": { + "systems": "systems_7" + }, "locked": { "lastModified": 1694529238, "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", @@ -277,9 +295,9 @@ "type": "github" } }, - "flake-utils_3": { + "flake-utils_4": { "inputs": { - "systems": "systems_8" + "systems": "systems_9" }, "locked": { "lastModified": 1681202837, @@ -341,7 +359,7 @@ }, "gomod2nix": { "inputs": { - "flake-utils": "flake-utils_2", + "flake-utils": "flake-utils_3", "nixpkgs": [ "tangled", "nixpkgs" @@ -1401,6 +1419,7 @@ "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_8", "nvf": "nvf", + "spacebar": "spacebar", "tangled": "tangled", "tuxstrap": "tuxstrap", "vscode-server": "vscode-server", @@ -1428,6 +1447,27 @@ "type": "github" } }, + "spacebar": { + "inputs": { + "flake-utils": "flake-utils_2", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1766286786, + "narHash": "sha256-dZxyXq4z674DhAQwCYAzaPG1W1G5HcEOwE/olz5XWGQ=", + "owner": "spacebarchat", + "repo": "server", + "rev": "61f9531556eb828cfb809ad7416df782a89f7fe1", + "type": "github" + }, + "original": { + "owner": "spacebarchat", + "repo": "server", + "type": "github" + } + }, "sqlite-lib-src": { "flake": false, "locked": { @@ -1561,6 +1601,21 @@ "type": "github" } }, + "systems_9": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "tangled": { "inputs": { "actor-typeahead-src": "actor-typeahead-src", @@ -1615,7 +1670,7 @@ "inputs": { "bun2nix": "bun2nix", "nixpkgs": "nixpkgs_11", - "systems": "systems_7" + "systems": "systems_8" }, "locked": { "lastModified": 1760196423, @@ -1633,7 +1688,7 @@ }, "vscode-server": { "inputs": { - "flake-utils": "flake-utils_3", + "flake-utils": "flake-utils_4", "nixpkgs": "nixpkgs_12" }, "locked": { diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index c49c1a3..ba11187 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -12,7 +12,9 @@ ./modules/tangled.nix ../../modules/force.nix ./modules/gitea.nix - ./modules/spacebar.nix + + # DO NOT ENABLE SPACEBAR YET + # ./modules/spacebar.nix ]; # gcc. shit breaks. wtf @@ -84,6 +86,7 @@ 443 3000 3001 + 4067 8080 25565 ]; @@ -92,6 +95,7 @@ 443 3000 3001 + 4067 8080 25565 ]; diff --git a/hosts/server/modules/spacebar.nix b/hosts/server/modules/spacebar.nix index 1143020..204f69a 100644 --- a/hosts/server/modules/spacebar.nix +++ b/hosts/server/modules/spacebar.nix @@ -13,5 +13,19 @@ enable = true; package = inputs.spacebar.packages.${pkgs.stdenv.hostPlatform.system}.default; extraEnvironment.PORT = 4067; + settings = { + api = { + endpointPublic = "https://chat.ocbwoy3.dev/api/v9"; + endpointPrivate = "http://127.0.0.1:4067/api/v9"; + }; + cdn = { + endpointPublic = "https://chat.ocbwoy3.dev/"; + endpointPrivate = "http://127.0.0.1:4067/"; + }; + gateway = { + endpointPublic = "wss://chat.ocbwoy3.dev/"; + endpointPrivate = "ws://127.0.0.1:4067/"; + }; + }; }; }