Hydra: Difference between revisions
m fix minor annoyances Tags: Mobile edit Mobile web edit |
Installation: introduction date in NixOS doesn't matter anymore 7 years later. |
||
| Line 12: | Line 12: | ||
<!--T:4--> | <!--T:4--> | ||
== Installation == | == Installation == | ||
A full deployment can be enabled as easy as: | |||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
services.hydra = { | services.hydra = { | ||
| Line 24: | Line 26: | ||
}; | }; | ||
</syntaxHighlight> | </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. | 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 | * See nixos-option or the [https://search.nixos.org/options?query=services.hydra Nixos Options page] for all options | ||
| Line 53: | Line 56: | ||
<!--T:7--> | <!--T:7--> | ||
This option leads to the file /etc/nix/machines being created. If the hydra service config is still set to buildMachinesFiles = [], then it will be ignored, so remove this option again or add <code>/etc/nix/machines</code> to it. | This option leads to the file /etc/nix/machines being created. If the hydra service config is still set to buildMachinesFiles = [], then it will be ignored, so remove this option again or add <code>/etc/nix/machines</code> to it. | ||
== Flake jobset == <!--T:8--> | == Flake jobset == <!--T:8--> | ||