Guest User

Untitled

a guest
May 4th, 2019
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. -- trivial.nix
  2. {
  3. network.description = "Web server";
  4. webserver =
  5. { config, pkgs, ... }:
  6. {
  7. services.httpd.enable = true;
  8. services.httpd.adminAddr = "[email protected]";
  9. services.httpd.documentRoot = "${pkgs.valgrind.doc}/share/doc/valgrind/html";
  10. networking.firewall.allowedTCPPorts = [ 80 ];
  11. };
  12. }
  13.  
  14. -- trivial-env.nix
  15. {
  16. webserver =
  17. { config, pkgs, ... }:
  18. {
  19. imports = [ ./hardware-configuration.nix ];
  20. deployment.targetHost = "nixos";
  21. };
  22. }
Advertisement
Add Comment
Please, Sign In to add comment