Summary Files Commits Branches @commit @diff @stats
path: root / modules / personal / web-server.nix
blob: 62bae7b871586905b3c72c51029af39e97dc926b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ 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";
      };
    };
  };

  networking.extraHosts = ''
    127.0.0.1 synd.local
  '';
}