Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- trivial.nix
- {
- network.description = "Web server";
- webserver =
- { config, pkgs, ... }:
- {
- services.httpd.enable = true;
- services.httpd.adminAddr = "[email protected]";
- services.httpd.documentRoot = "${pkgs.valgrind.doc}/share/doc/valgrind/html";
- networking.firewall.allowedTCPPorts = [ 80 ];
- };
- }
- -- trivial-env.nix
- {
- webserver =
- { config, pkgs, ... }:
- {
- imports = [ ./hardware-configuration.nix ];
- deployment.targetHost = "nixos";
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment