summaryrefslogtreecommitdiff
path: root/modules/lib/hostOptions.nix
blob: 37a00c871e236337bddc22c47333061cded75937 (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
{
  flake.nixosModules.hostOptions = {lib, ...}: {
    options.hostOptions = {
      host = {
        name = lib.mkOption {
          type = lib.types.str;
        };
      };
      user = {
        name = lib.mkOption {
          type = lib.types.str;
          default = "jck";
        };
        email = lib.mkOption {
          type = lib.types.str;
          default = "jckrinsky@gmail.com";
        };
      };
      server = {
        dataPath = lib.mkOption {
          type = lib.types.path;
          default = "/tank/data/";
          example = "/var/lib/";
          description = "path where you keep all your services' data";
        };
        mediaPath = lib.mkOption {
          type = lib.types.path;
          default = "/tank/media";
          description = "path where you keep all your media";
        };
        domain = lib.mkOption {
          type = lib.types.str;
          default = "jckrinsky.net";
        };
        sshKeys = {
          type = lib.types.list lib.types.str;
        };
      };
    };
  };
}