Hydra: Difference between revisions
m missed a line |
m fix nix code block indentation and syntax highlighting for shell commands |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<languages /> | <languages /> | ||
<translate> | <translate> | ||
<!--T:73--> | |||
{{note| Hydra is intended to be used by Nix/NixOS package developers; it is not needed to simply use NixOS.}} | {{note| Hydra is intended to be used by Nix/NixOS package developers; it is not needed to simply use NixOS.}} | ||
| Line 7: | Line 8: | ||
<!--T:2--> | <!--T:2--> | ||
The official Hydra servers provide pre-built binary packages to speed up the update time for | The official Hydra servers provide pre-built binary packages to speed up the update time for Nixpkgs: Users do not have to compile them on their own computers. | ||
<!--T:3--> | <!--T:3--> | ||
| Line 18: | Line 19: | ||
</translate> | </translate> | ||
< | <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 this, otherwise *everything* will be built from scratch | |||
useSubstitutes = true; | |||
}; | |||
</ | </syntaxhighlight> | ||
<translate> | <translate> | ||
| Line 43: | Line 44: | ||
</translate> | </translate> | ||
<syntaxHighlight lang= | <syntaxHighlight lang=console> | ||
$ su - hydra | |||
$ hydra-create-user alice --full-name 'Alice Q. User' \ | $ hydra-create-user alice --full-name 'Alice Q. User' \ | ||
--email-address 'alice@example.org' --password-prompt --role admin | --email-address 'alice@example.org' --password-prompt --role admin | ||