This effort was superseeded by the NixOS module in this PR. Please use it's branch or, as soon as it's merged, the official NixOS module.
This Nix flake packages Weblate, a web based translation tool. It is fully usable and tested regularly.
The primary use of this flake is deploying Weblate on NixOS. For that you would use the NixOS module available in .#nixosModule
.
If you have that module available in your NixOS config, configuration is straightforward. See e.g. this example config:
{ config, lib, pkgs, ... }: {
services.weblate = {
enable = true;
localDomain = "weblate.example.org";
# E.g. use `base64 /dev/urandom | head -c50` to generate one.
djangoSecretKeyFile = "/path/to/secret";
smtp = {
createLocally = true;
user = "[email protected]";
passwordFile = "/path/to/secret";
};
};
}
There is an ongoing effort to merge the Weblate module and package into Nixpkgs. If you want to support this, your review would be welcome.