aboutsummaryrefslogtreecommitdiffstats
path: root/apps/cgit/appspec.nix
blob: a7744d5aaa4f90bce07b5a68038897e8ddd885c4 (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
{ fysilib, lib, ... }: {
  description = "cgit";
  endOfLife = null;
  options = {
    domain = lib.mkOption {
      description = "Domain of cgit instance";
      type = fysilib.types.fqdn;
    };
    repositories = lib.mkOption {
      type = fysilib.types.attrsOf (fysilib.types.submodule {
        options = {
          name = lib.mkOption {
            default = null;
            type = fysilib.types.pathComponent;
          };
          description = lib.mkOption {
            default = null;
            type = fysilib.types.nullOr fysilib.types.str;
          };
        };
      });
    };
    settings = lib.mkOption {
      type = lib.types.attrsOf (lib.types.oneOf [ lib.types.bool lib.types.int lib.types.str ]);
      default = { };
    };
    users = lib.mkOption {
      type = lib.types.attrsOf (lib.types.submodule {
        options.publicKeyFile = lib.mkOption {
          type = lib.types.nullOr lib.types.str;
        };
      });
      default = { };
    };
  };
}