Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Latest commit

 

History

History
35 lines (23 loc) · 1.17 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.17 KB

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.

About this flake

This Nix flake packages Weblate, a web based translation tool. It is fully usable and tested regularly.

Usage

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";
    };
  };

}

Putting Weblate into Nixpkgs

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.