aboutsummaryrefslogtreecommitdiff
path: root/hosts/odin/modules/default.nix
blob: 0a7aba12b86da3e02c69b2bf27b5a14f35739f99 (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
44
45
46
47
48
49
50
{
  modules = {
    containers.watchtower.enable = true;
    containers.pinchflat = {
      enable = true;
      mediaDir = "/tank/media/yt";
    };
    containers.freshrss = {
      enable = true;
      url = "fresh.brownbread.net";
    };
    containers.lubelogger = {
      enable = true;
      url = "garage.brownbread.net";
    };
    containers.vaultwarden = {
      enable = true;
      url = "steel-mountain.brownbread.net";
    };
    containers.jellyfin = {
      enable = true;
      url = "buttered.brownbread.net";
      mediaDir = "/tank/media";
    };
    services.immich = {
      enable = true;
      url = "photographs.brownbread.net";
      mediaDir = "/tank/immich";
    };
    scripts.motd = {
      enable = true;
      networkInterfaces = [ "eno1" ];
      servicesToCheck = [
        "caddy"
        "immich-machine-learning"
        "immich-server"
        "postgresql"
        "redis-immich"
        "zfs-zed"
      ];
    };
    scripts.zquota = {
      enable = true;
      quotas = {
        "tank/backups" = 512;
        "tank/media" = 1536;
      };
    };
  };
}