summaryrefslogtreecommitdiffstats
path: root/lass/1systems/red/config.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-04-28 23:18:05 +0200
committerlassulus <lassulus@lassul.us>2018-04-28 23:18:05 +0200
commit1820b1753011eb42bb9be30011e6fbd11993b201 (patch)
tree1d9a8ea4ea7b94e7057e633bbaeedcb0dcc52be2 /lass/1systems/red/config.nix
parentb96f9d898a77bb5a735ad35d1bc1eeeea1833cae (diff)
l: add red.r
Diffstat (limited to 'lass/1systems/red/config.nix')
-rw-r--r--lass/1systems/red/config.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/lass/1systems/red/config.nix b/lass/1systems/red/config.nix
new file mode 100644
index 000000000..8c60aed62
--- /dev/null
+++ b/lass/1systems/red/config.nix
@@ -0,0 +1,30 @@
+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.systemPackages = [
+ pkgs.mk_sql_pair
+ ];
+}