···1010{
1111 meta.maintainers = [ lib.maintainers.quadradical ];
1212 options.services.lk-jwt-service = {
1313- enable = lib.mkEnableOption "Enable lk-jwt-service";
1313+ enable = lib.mkEnableOption "lk-jwt-service";
1414 package = lib.mkPackageOption pkgs "lk-jwt-service" { };
15151616 livekitUrl = lib.mkOption {
···2828 Path to a file containing the credential mapping (`<keyname>: <secret>`) to access LiveKit.
29293030 Example:
3131- ```
3232- lk-jwt-service: f6lQGaHtM5HfgZjIcec3cOCRfiDqIine4CpZZnqdT5cE
3333- ```
3131+ `lk-jwt-service: f6lQGaHtM5HfgZjIcec3cOCRfiDqIine4CpZZnqdT5cE`
34323533 For more information, see <https://github.com/element-hq/lk-jwt-service#configuration>.
3634 '';
+4-5
nixos/modules/services/networking/livekit.nix
···1212{
1313 meta.maintainers = with lib.maintainers; [ quadradical ];
1414 options.services.livekit = {
1515- enable = lib.mkEnableOption "Enable the livekit server";
1515+ enable = lib.mkEnableOption "the livekit server";
1616 package = lib.mkPackageOption pkgs "livekit" { };
17171818 keyFile = lib.mkOption {
···2020 description = ''
2121 LiveKit key file holding one or multiple application secrets. Use `livekit-server generate-keys` to generate a random key name and secret.
22222323- The file should have the format `<keyname>: <secret>`. Example:
2424- ```
2525- lk-jwt-service: f6lQGaHtM5HfgZjIcec3cOCRfiDqIine4CpZZnqdT5cE
2626- ```
2323+ The file should have the format `<keyname>: <secret>`.
2424+ Example:
2525+ `lk-jwt-service: f6lQGaHtM5HfgZjIcec3cOCRfiDqIine4CpZZnqdT5cE`
27262827 Individual key/secret pairs need to be passed to clients to connect to this instance.
2928 '';
···19192020 skopeoTest = skopeo.override { buildGoModule = buildGo123Module; };
21212222- goarch =
2323- platform:
2424- {
2525- "aarch64" = "arm64";
2626- "arm" = "arm";
2727- "armv5tel" = "arm";
2828- "armv6l" = "arm";
2929- "armv7l" = "arm";
3030- "i686" = "386";
3131- "loongarch64" = "loong64";
3232- "mips" = "mips";
3333- "mips64el" = "mips64le";
3434- "mipsel" = "mipsle";
3535- "powerpc64" = "ppc64";
3636- "powerpc64le" = "ppc64le";
3737- "riscv64" = "riscv64";
3838- "s390x" = "s390x";
3939- "x86_64" = "amd64";
4040- "wasm32" = "wasm";
4141- }
4242- .${platform.parsed.cpu.name} or (throw "Unsupported system: ${platform.parsed.cpu.name}");
4343-4422 # We need a target compiler which is still runnable at build time,
4523 # to handle the cross-building case where build != host == target
4624 targetCC = pkgsBuildTarget.targetPackages.stdenv.cc;
···8866 ./go_no_vendor_checks-1.23.patch
8967 ];
90689191- GOOS = if stdenv.targetPlatform.isWasi then "wasip1" else stdenv.targetPlatform.parsed.kernel.name;
9292- GOARCH = goarch stdenv.targetPlatform;
6969+ inherit (stdenv.targetPlatform.go) GOOS GOARCH GOARM;
9370 # GOHOSTOS/GOHOSTARCH must match the building system, not the host system.
9471 # Go will nevertheless build a for host system that we will copy over in
9572 # the install phase.
9696- GOHOSTOS = stdenv.buildPlatform.parsed.kernel.name;
9797- GOHOSTARCH = goarch stdenv.buildPlatform;
7373+ GOHOSTOS = stdenv.buildPlatform.go.GOOS;
7474+ GOHOSTARCH = stdenv.buildPlatform.go.GOARCH;
98759976 # {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
10077 # to be different from CC/CXX
10178 CC_FOR_TARGET = if isCross then "${targetCC}/bin/${targetCC.targetPrefix}cc" else null;
10279 CXX_FOR_TARGET = if isCross then "${targetCC}/bin/${targetCC.targetPrefix}c++" else null;
10380104104- GOARM = toString (
105105- lib.intersectLists [ (stdenv.hostPlatform.parsed.cpu.version or "") ] [ "5" "6" "7" ]
106106- );
10781 GO386 = "softfloat"; # from Arch: don't assume sse2 on i686
10882 # Wasi does not support CGO
10983 CGO_ENABLED = if stdenv.targetPlatform.isWasi then 0 else 1;
+3-29
pkgs/development/compilers/go/1.24.nix
···19192020 skopeoTest = skopeo.override { buildGoModule = buildGo124Module; };
21212222- goarch =
2323- platform:
2424- {
2525- "aarch64" = "arm64";
2626- "arm" = "arm";
2727- "armv5tel" = "arm";
2828- "armv6l" = "arm";
2929- "armv7l" = "arm";
3030- "i686" = "386";
3131- "loongarch64" = "loong64";
3232- "mips" = "mips";
3333- "mips64el" = "mips64le";
3434- "mipsel" = "mipsle";
3535- "powerpc64" = "ppc64";
3636- "powerpc64le" = "ppc64le";
3737- "riscv64" = "riscv64";
3838- "s390x" = "s390x";
3939- "x86_64" = "amd64";
4040- "wasm32" = "wasm";
4141- }
4242- .${platform.parsed.cpu.name} or (throw "Unsupported system: ${platform.parsed.cpu.name}");
4343-4422 # We need a target compiler which is still runnable at build time,
4523 # to handle the cross-building case where build != host == target
4624 targetCC = pkgsBuildTarget.targetPackages.stdenv.cc;
···8866 ./go_no_vendor_checks-1.23.patch
8967 ];
90689191- GOOS = if stdenv.targetPlatform.isWasi then "wasip1" else stdenv.targetPlatform.parsed.kernel.name;
9292- GOARCH = goarch stdenv.targetPlatform;
6969+ inherit (stdenv.targetPlatform.go) GOOS GOARCH GOARM;
9370 # GOHOSTOS/GOHOSTARCH must match the building system, not the host system.
9471 # Go will nevertheless build a for host system that we will copy over in
9572 # the install phase.
9696- GOHOSTOS = stdenv.buildPlatform.parsed.kernel.name;
9797- GOHOSTARCH = goarch stdenv.buildPlatform;
7373+ GOHOSTOS = stdenv.buildPlatform.go.GOOS;
7474+ GOHOSTARCH = stdenv.buildPlatform.go.GOARCH;
98759976 # {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
10077 # to be different from CC/CXX
10178 CC_FOR_TARGET = if isCross then "${targetCC}/bin/${targetCC.targetPrefix}cc" else null;
10279 CXX_FOR_TARGET = if isCross then "${targetCC}/bin/${targetCC.targetPrefix}c++" else null;
10380104104- GOARM = toString (
105105- lib.intersectLists [ (stdenv.hostPlatform.parsed.cpu.version or "") ] [ "5" "6" "7" ]
106106- );
10781 GO386 = "softfloat"; # from Arch: don't assume sse2 on i686
10882 # Wasi does not support CGO
10983 CGO_ENABLED = if stdenv.targetPlatform.isWasi then 0 else 1;