|
|
| Line 1: |
Line 1: |
| == Installation == | | == Installation == |
| Since 2017, hydra is available as a NixOS module and therefore a full deployment can be enabled as easy as
| |
| <syntaxHighlight lang=nix>
| |
| services.hydra = {
| |
| enable = true;
| |
| hydraURL = "http://localhost:3000"; # externally visible URL
| |
| notificationSender = "hydra@localhost"; # e-mail of hydra service
| |
| # a standalone hydra will require you to unset the buildMachinesFiles list to avoid using a nonexistant /etc/nix/machines
| |
| buildMachinesFiles = [];
| |
| # you will probably also want, otherwise *everything* will be built from scratch
| |
| useSubstitutes = true;
| |
| };
| |
| </syntaxHighlight>
| |
| The module will automatically enable postgresql if you do not change the <code>services.hydra.dbi</code> option. Database layout will be created automatically by the hydra service, however keep in mind that some state will be stored in the database and a complete stateless configuration is currently not possible - do your backups.
| |
| * See nixos-option or the [https://search.nixos.org/options?query=services.hydra Nixos Options page] for all options
| |