summaryrefslogtreecommitdiffstats
path: root/3modules/krebs/default.nix
blob: b8722d18fe30d5e5fccb83b453e30c13844921b9 (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
37
38
39
40
41
42
43
{ config, lib, ... }:

with import ../../4lib/krebs { inherit lib; };
let
  cfg = config.krebs;

  out = {
    imports = [
      ./github-hosts-sync.nix
      ./git.nix
      ./nginx.nix
      ./retiolum.nix
      ./urlwatch.nix
    ];
    options.krebs = api;
    config = mkIf cfg.enable imp;
  };

  api = {
    users = mkOption {
      type = with types; attrsOf user;
      default = addNames {
          lass = {
            pubkey = readFile ../../Zpubkeys/lass.ssh.pub;
          };
          makefu = {
            pubkey = readFile ../../Zpubkeys/makefu.ssh.pub;
          };
          tv = {
            pubkey = readFile ../../Zpubkeys/tv_wu.ssh.pub;
          };
          uriel = {
            pubkey = readFile ../../Zpubkeys/uriel.ssh.pub;
          };
        };
    };
  };

  imp = {
  };

in
out