Hydra: Difference between revisions
imported>Makefu add declarative building |
imported>Makefu remove explicit hydra init, as |
||
| Line 9: | Line 9: | ||
Since 2017, hydra is available as a NixOS module and therefore a full deployment can be enabled as easy as | Since 2017, hydra is available as a NixOS module and therefore a full deployment can be enabled as easy as | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
services.hydra = { | services.hydra = { | ||
enable = true; | enable = true; | ||
| Line 20: | Line 19: | ||
}; | }; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
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://nixos.org/nixos/options.html#services.hydra Nixos Options page] for all options | * See nixos-option or the [https://nixos.org/nixos/options.html#services.hydra Nixos Options page] for all options | ||