summaryrefslogtreecommitdiff
path: root/templates/system-flake/sys/default.nix
blob: fa0f99412c44976e19f2a0822287a83324c28118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{pkgs, ...}: {
  # Let 'nixos-version --json' know about the Git revision
  # of this flake.
  system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;

  # Network configuration.
  networking.firewall.allowedTCPPorts = [80];

  # Enable a web server.
  services.httpd = {
    enable = true;
    adminAddr = "morty@example.org";
  };
}