summaryrefslogtreecommitdiffstats
path: root/lass/1systems/red/config.nix
blob: 31e2de96610c27a609efd38f47100f6a939d99e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
with import <stockholm/lib>;
{ config, lib, pkgs, ... }:
let
  inherit (import <stockholm/lass/2configs/websites/util.nix> {inherit lib pkgs;})
    servephpBB
  ;
in
{
  imports = [
    <stockholm/lass>
    <stockholm/lass/2configs>
    <stockholm/lass/2configs/retiolum.nix>
    <stockholm/lass/2configs/websites>
    <stockholm/lass/2configs/websites/sqlBackup.nix>
    (servephpBB [ "rote-allez-fraktion.de" ])
  ];

  krebs.iptables.tables.filter.INPUT.rules = [
    { predicate = "-p tcp --dport 80"; target = "ACCEPT"; }
  ];

  krebs.build.host = config.krebs.hosts.red;
  boot.isContainer = true;
  networking.useDHCP = false;

  services.nginx.enable = true;
  environment.variables.NIX_REMOTE = "daemon";
  environment.systemPackages = [
    pkgs.mk_sql_pair
  ];
}