aboutsummaryrefslogtreecommitdiff
path: root/hosts/tahoe/services.nix
blob: 8846eae4526a37767d88e20f85bed385c6d3c9c6 (plain) (blame)
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
{ config, ... }:
let secrets = config.age.secrets;
in {
  my.services = {
    samba = {
      enable = true;
      publicShares = [ "/data/fast/music" "/data/fast/videos" ];
    };
    navidrome = {
      enable = true;
      musicFolder = "/data/fast/music";
    };
    unifi = { enable = true; };
    prometheus = { enable = true; };
    grafana = { enable = true; };
    gitea = {
      enable = true;
      stateDir = "/var/lib/gitea";
    };
    rclone = { enable = true; };
    traefik = { enable = false; };
    nginx = {
      enable = true;
      acme = { credentialsFile = secrets."acme/dns-key".path; };
      sso = {
        authKeyFile = secrets."sso/auth-key".path;
        users = {
          fcuny = {
            passwordHashFile = secrets."sso/fcuny/password-hash".path;
          };
        };
        groups = { root = [ "fcuny" ]; };
      };
    };
    transmission = { enable = true; };
    metrics-exporter = { enable = true; };
    backup = {
      enable = true;
      repository = "/data/slow/backups/systems";
      timerConfig = { OnCalendar = "00:15"; };
      passwordFile = secrets."restic/repo-systems".path;
      paths = [ "/data/fast/music" "/data/fast/photos" "/data/fast/videos" ];
    };
  };
}