Compare commits

..

No commits in common. "8f0c07c9503092fa890e2e70b3e15a92c57af150" and "e322553c02475e9af42d77a55a05664859da6eac" have entirely different histories.

4 changed files with 30 additions and 37 deletions

View file

@ -7,7 +7,6 @@
lk-jwt-service = { lk-jwt-service = {
enable = true; enable = true;
livekit = { livekit = {
url = "wss://call.henryhiles.com/livekit/sfu";
keyFile = config.age.secrets."livekitKeys.age".path; keyFile = config.age.secrets."livekitKeys.age".path;
}; };
}; };
@ -20,27 +19,21 @@
caddy.virtualHosts."call.henryhiles.com".extraConfig = '' caddy.virtualHosts."call.henryhiles.com".extraConfig = ''
root * ${pkgs.element-call} root * ${pkgs.element-call}
route { route {
respond /config.json `${builtins.toJSON { respond /config.json `${builtins.toJSON {
default_server_config = { default_server_config = {
"m.homeserver" = { "m.homeserver" = {
"base_url" = "https://matrix.henryhiles.com"; "base_url" = "https://matrix.henryhiles.com";
"server_name" = "henryhiles.com"; "server_name" = "henryhiles.com";
}; };
}; };
livekit.livekit_service_url = "https://call.henryhiles.com/livekit"; livekit.livekit_service_url = "https://call.henryhiles.com";
}}` 200 }}` 200
handle /livekit/sfu/get { reverse_proxy /livekit/sfu 127.0.0.1:7880
uri strip_prefix /livekit reverse_proxy /livekit/jwt 127.0.0.1:8080
reverse_proxy 127.0.0.1:8080
}
handle_path /livekit/sfu* { try_files {path} {path}/ /index.html
reverse_proxy 127.0.0.1:7880 file_server
}
try_files {path} {path}/ /index.html
file_server
} }
''; '';
}; };

43
flake.lock generated
View file

@ -220,11 +220,11 @@
"firefox-gnome-theme": { "firefox-gnome-theme": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1744642301, "lastModified": 1744030537,
"narHash": "sha256-5A6LL7T0lttn1vrKsNOKUk9V0ittdW0VEqh6AtefxJ4=", "narHash": "sha256-eflvu31mWHjIdJUWztGPRuqfqsXCJGxOnVS/iRRAZNY=",
"owner": "rafaelmardojai", "owner": "rafaelmardojai",
"repo": "firefox-gnome-theme", "repo": "firefox-gnome-theme",
"rev": "59e3de00f01e5adb851d824cf7911bd90c31083a", "rev": "bf6d98d106f912cf4185208a59e39f62882ee259",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -508,17 +508,16 @@
}, },
"locked": { "locked": {
"host": "gitlab.computer.surgery", "host": "gitlab.computer.surgery",
"lastModified": 1744849956, "lastModified": 1744402223,
"narHash": "sha256-Z14V4d43K21fHtoJj5QiwpfcVaN+IpXKQWHb5PAUeDs=", "narHash": "sha256-WL86Mm8PbJ3dkGinZ8O4slaAoO0cveXgk9SVhghGTm8=",
"owner": "matrix", "owner": "matrix",
"repo": "grapevine", "repo": "grapevine",
"rev": "2e57497bc8b894ca9f204e0aa54abc9e9da8d9af", "rev": "c03103a14208e39e64548e36f3953e9d654b21fd",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
"host": "gitlab.computer.surgery", "host": "gitlab.computer.surgery",
"owner": "matrix", "owner": "matrix",
"ref": "olivia/openid-api",
"repo": "grapevine", "repo": "grapevine",
"type": "gitlab" "type": "gitlab"
} }
@ -551,11 +550,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1744833442, "lastModified": 1744498625,
"narHash": "sha256-BBMWW2m64Grcc5FlXz74+vdkUyCJOfUGnl+VcS/4x44=", "narHash": "sha256-pL52uCt9CUoTTmysGG91c2FeU7XUvpB7Cep6yon2vDk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "c6b75d69b6994ba68ec281bd36faebcc56097800", "rev": "db56335ca8942d86f2200664acdbd5b9212b26ad",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -689,11 +688,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1744463964, "lastModified": 1744232761,
"narHash": "sha256-LWqduOgLHCFxiTNYi3Uj5Lgz0SR+Xhw3kr/3Xd0GPTM=", "narHash": "sha256-gbl9hE39nQRpZaLjhWKmEu5ejtQsgI5TWYrIVVJn30U=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2631b0b7abcea6e640ce31cd78ea58910d31e650", "rev": "f675531bc7e6657c10a18b565cfebd8aa9e24c14",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -750,11 +749,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1744830196, "lastModified": 1744492537,
"narHash": "sha256-za99eK3Xz6/NGPAWv4m5oVcRiklep+Xx70rYcj7sIcw=", "narHash": "sha256-ljsyvCk265mL6R35KtUW/miw227h1xSFVXJWDjYI3Gw=",
"owner": "wamserma", "owner": "wamserma",
"repo": "flake-programs-sqlite", "repo": "flake-programs-sqlite",
"rev": "34d474ee18062e7c3b42dd3d79e62a7971ea4965", "rev": "87c75f85b83727c4fdc48c2a5cdc980e904bbeed",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -832,11 +831,11 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1744668092, "lastModified": 1744270948,
"narHash": "sha256-XDmpI3ywMkypsHKRF2am6BzZ5OjwpQMulAe8L87Ek8U=", "narHash": "sha256-+1psY8uBaDdkqV/P3G40SzulPvUcb9VHisqQnDozC0U=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "38aff11a7097f4da6b95d4c4d2c0438f25a08d52", "rev": "ce45f19e8acb43e5f02888d873d451e2f994546b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1031,11 +1030,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1744611115, "lastModified": 1744357296,
"narHash": "sha256-7WsdYgA6bh9dytXdLKQYUkUdSux6fNo7SZXYqMJx72k=", "narHash": "sha256-82ByXqDDdVcDYO3yE6Ntj/pcNtJ3bBDzu7oVDp/OPWg=",
"owner": "viperML", "owner": "viperML",
"repo": "wrapper-manager", "repo": "wrapper-manager",
"rev": "a4990b7da8e7845974031599e7f6104226cfb43e", "rev": "8ebdb81ed03aa26e4c797af9c3e05f467c1f29ca",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -2,7 +2,7 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
agenix-cli.url = "github:cole-h/agenix-cli"; agenix-cli.url = "github:cole-h/agenix-cli";
grapevine.url = "gitlab:matrix/grapevine?ref=olivia/openid-api&host=gitlab.computer.surgery"; grapevine.url = "gitlab:matrix/grapevine?host=gitlab.computer.surgery";
agenix = { agenix = {
url = "github:ryantm/agenix"; url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";

View file

@ -14,7 +14,8 @@ in {
livekit = { livekit = {
url = lib.mkOption { url = lib.mkOption {
type = lib.types.str; type = lib.types.str;
description = "The URL that livekit runs on, prefixed with `ws://` or `wss://` (recommended)."; default = "127.0.0.1";
description = "The URL that livekit runs on, prefixed with `ws://`.";
}; };
keyFile = lib.mkOption { keyFile = lib.mkOption {