Summary Files Commits Branches @commit @diff @stats
path: root / modules / web-server.nix
blob: bb4a968dcc730ef32e30579daaa41f9c39e671ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ pkgs, ... }: {
  environment.systemPackages = with pkgs; [
    apacheHttpd
  ];

  services.httpd = {
    enable = true;

    virtualHosts = {
      syndamiadotcom-local = {
        hostName = "synd.local";
        listen = [ { port = 80; } ];
        documentRoot = "/home/kamen/Programming/GitLab-repos/syndamiadotcom/website";
      };
    };
  };
}