summaryrefslogtreecommitdiffstats
path: root/krebs/1systems/news/config.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-01-24 16:32:30 +0100
committerlassulus <lassulus@lassul.us>2021-01-24 16:32:30 +0100
commitce8b0541ea9ef7c07ee8c71b9c0a8307ed821d76 (patch)
tree9cb2c1ed0a282e80c0b58bc4455305ef3bfa70df /krebs/1systems/news/config.nix
parentec9c2defae862a2ba57c7d94b5697c93d5910536 (diff)
init news.r
Diffstat (limited to 'krebs/1systems/news/config.nix')
-rw-r--r--krebs/1systems/news/config.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/krebs/1systems/news/config.nix b/krebs/1systems/news/config.nix
new file mode 100644
index 000000000..e4059e579
--- /dev/null
+++ b/krebs/1systems/news/config.nix
@@ -0,0 +1,36 @@
+{ config, lib, pkgs, ... }:
+
+{
+ imports = [
+ <stockholm/krebs>
+ <stockholm/krebs/2configs>
+
+ <stockholm/krebs/2configs/ircd.nix>
+ <stockholm/krebs/2configs/go.nix>
+
+ #### NEWS ####
+ <stockholm/krebs/2configs/ircd.nix>
+ <stockholm/krebs/2configs/news.nix>
+ ];
+
+ krebs.build.host = config.krebs.hosts.news;
+
+ boot.isContainer = true;
+ networking.useDHCP = false;
+ krebs.bindfs = {
+ "/var/lib/htgen-go" = {
+ source = "/var/state/htgen-go";
+ options = [
+ "-M ${toString config.users.users.htgen-go.uid}"
+ ];
+ clearTarget = true;
+ };
+ "/var/lib/brockman" = {
+ source = "/var/state/brockman";
+ options = [
+ "-M ${toString config.users.users.brockman.uid}"
+ ];
+ clearTarget = true;
+ };
+ };
+}