aboutsummaryrefslogblamecommitdiff
path: root/hosts/tahoe/services.nix
blob: 9bd7162c91c5aa559c31665761d7eab4ecb27803 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                

                                 






                                                                
                                    

                                       



                                    
                                    

                    
                                   
      



                                  


                                    
                             

                                                      
                                
                               



                                 
                                          
                            
              
                    
                                                
                                              
                                                        

                                                                               

      
 
{ config, ... }:
let secrets = config.age.secrets;
in {
  my.services = {
    samba = {
      enable = true;
      publicShares = [ "/data/fast/music" "/data/fast/videos" ];
    };
    navidrome = {
      enable = true;
      vhostName = "music.fcuny.xyz";
      musicFolder = "/data/fast/music";
    };
    unifi = {
      enable = true;
      vhostName = "unifi.fcuny.xyz";
    };
    prometheus = { enable = true; };
    grafana = {
      enable = true;
      vhostName = "dash.fcuny.xyz";
    };
    gitea = {
      enable = true;
      stateDir = "/var/lib/gitea";
    };
    drone = {
      enable = true;
      vhostName = "drone.fcuny.xyz";
      runners = [ "docker" ];
      sharedSecretFile = secrets."drone/secrets".path;
    };
    rclone = { enable = true; };
    nginx = { enable = true; };
    transmission = {
      enable = true;
      vhostName = "bt.fcuny.xyz";
    };
    metrics-exporter = { enable = true; };
    syncthing.enable = true;
    backup = {
      enable = true;
      repository = "/data/slow/backups/systems";
      timerConfig = { OnCalendar = "00:15"; };
      passwordFile = secrets."restic/repo-systems".path;
      paths =
        [ "/home" "/data/fast/music" "/data/fast/photos" "/data/fast/videos" ];
    };
  };
}