Advertisement
Guest User

Untitled

a guest
Oct 1st, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. {
  2. network.description = "Web server";
  3.  
  4. webserver =
  5. { config, pkgs, ... }:
  6. { services.httpd.enable = true;
  7. services.httpd.adminAddr = "alice@example.org";
  8. services.httpd.documentRoot = "${pkgs.valgrind.doc}/share/doc/valgrind/html";
  9. networking.firewall.allowedTCPPorts = [ 80 3000];
  10.  
  11. services.hydra = {
  12. enable = true;
  13. hydraURL = "http://localhost:3000"; # externally visible URL
  14. notificationSender = "hydra@localhost"; # e-mail of hydra service
  15. # a standalone hydra will require you to unset the buildMachinesFiles list to avoid using a nonexistant /etc/nix/machines
  16. buildMachinesFiles = [];
  17. # you will probably also want, otherwise *everything* will be built from scratch
  18. useSubstitutes = true;
  19. #listenHost = "*";
  20. };
  21.  
  22.  
  23.  
  24. #services.postgresql.enable = true;
  25. environment.systemPackages = with pkgs; [ wget vim git];
  26.  
  27.  
  28. };
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement