Hydra: Difference between revisions

fixed grammar mistake
DHCP (talk | contribs)
m fix nix code block indentation and syntax highlighting for shell commands
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:


<!--T:2-->
<!--T:2-->
The official Hydra servers provide pre-built binary packages to speed up the update time for Nixpgs: Users do not have to compile them on their own computers.
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 20: Line 20:
</translate>
</translate>
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
  services.hydra = {
services.hydra = {
    enable = true;
  enable = true;
    hydraURL = "http://localhost:3000"; # externally visible URL
  hydraURL = "http://localhost:3000"; # externally visible URL
    notificationSender = "hydra@localhost"; # e-mail of Hydra service
  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
  # a standalone Hydra will require you to unset the buildMachinesFiles list to avoid using a nonexistant /etc/nix/machines
    buildMachinesFiles = [];
  buildMachinesFiles = [];
    # you will probably also want this, otherwise *everything* will be built from scratch
  # you will probably also want this, otherwise *everything* will be built from scratch
    useSubstitutes = true;
  useSubstitutes = true;
  };
};
</syntaxhighlight>
</syntaxhighlight>
<translate>
<translate>
Line 44: Line 44:


</translate>
</translate>
<syntaxHighlight lang=bash>
<syntaxHighlight lang=console>
# su - hydra
$ 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