diff --git a/docs/deploying/generic.mdx b/docs/deploying/generic.mdx index 6dd6387e2..b7aa954bf 100644 --- a/docs/deploying/generic.mdx +++ b/docs/deploying/generic.mdx @@ -47,11 +47,15 @@ and, for amd64, target the haswell CPU architecture. ### Nix -Theres a Nix package defined in our flake, available for Linux and MacOS. Add continuwuity as an input to your flake, and use `inputs.continuwuity.packages.${system}.default` to get a working Continuwuity package. +If you wish to generate a static binary, you can do so using Nix: `nix build git+https://forgejo.ellis.link/continuwuation/continuwuity#packageName`, where `packageName` is one of: -If you simply wish to generate a binary using Nix, you can run `nix build git+https://forgejo.ellis.link/continuwuation/continuwuity` to generate a binary in `result/bin/conduwuit`. +- `default-static-x86_64` +- `default-static-aarch64` +- `max-perf-static-x86_64` +- `max-perf-haswell-static-x86_64` +- `max-perf-static-aarch64` -Alternatively, you can get a statically compiled musl binary by running `nix build git+https://forgejo.ellis.link/continuwuation/continuwuity#default-static-[x86_64/aarch64 (choose one)]`. +`max-perf` takes longer to build, but has more runtime optimizations. Haswell builds are optimized for modern CPUs. ### Compiling diff --git a/docs/deploying/nixos.mdx b/docs/deploying/nixos.mdx index aecc22c64..2db389fb9 100644 --- a/docs/deploying/nixos.mdx +++ b/docs/deploying/nixos.mdx @@ -47,9 +47,16 @@ The NixOS module provides these configuration options: - `extraEnvironment`: Extra environment variables to pass to the Continuwuity server - `package`: The Continuwuity package to use, defaults to `pkgs.matrix-continuwuity` - You may want to override this to be from our flake, for faster updates and unstable versions: + ```nix - package = inputs.continuwuity.packages.${pkgs.stdenv.hostPlatform.system}.default; + package = inputs.continuwuity.packages.${pkgs.stdenv.hostPlatform.system}.packageName; ``` + + Where `packageName` is one of: + - `default` + - `max-perf`: Takes longer to build, but has more runtime optimizations + - `max-perf-haswell`: Optimized for modern CPUs, don't use if your CPU is not Haswell. + - `admin.enable`: Whether to add the `conduwuit` binary to `PATH` for administration (enabled by default) - `settings`: The Continuwuity configuration