summaryrefslogtreecommitdiffstats
path: root/krebs/1systems/news/config.nix
blob: e4059e579595f78d0cf21ef363fba102412d69dc (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
32
33
34
35
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;
    };
  };
}