summaryrefslogtreecommitdiffstats
path: root/tv/2configs/nginx/default.nix
blob: 39995c052098643715d6646b1ccd7dd2ddf22ce8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, lib, ... }:

with import <stockholm/lib>;

{
  krebs.nginx = {
    servers.default.locations = [
      (nameValuePair "= /etc/os-release" ''
        default_type text/plain;
        alias /etc/os-release;
      '')
    ];
  };
  tv.iptables = optionalAttrs config.krebs.nginx.enable {
    input-retiolum-accept-tcp = singleton "http";
  };
}