aboutsummaryrefslogblamecommitdiff
path: root/modules/private/default.nix
blob: 6173275a3a1d66fa6e69bb54e54e3d275509a6c6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

       
                                                                                    


                                                                                                       





                                          
                                                                 
                                                           
                                                       
                                                             
 
                        




                                                                   

                                               
 

                                                                 





                                                              


                                                   
 


                                              






                                                              
                                              



                                                     
                                                  
 

                                                    
                                                 
                                                      
 

                                                           


                                                
                                                
 


                                                           

                                     
                                 



                                           
                               



                                           
                                   
 


                                                   
                
 


                                    
                  



                  
                  
                        
              
                            
                                   
              
 
                                  
                        
                                          


                                                                                                          
let
set = {
  # adatped from nixpkgs/nixos/modules/services/web-servers/apache-httpd/default.nix
  httpdInte  = import ../websites/httpd-service-builder.nix { httpdName = "Inte"; withUsers = false; };
  httpdProd  = import ../websites/httpd-service-builder.nix { httpdName = "Prod"; withUsers = false; };
  httpdTools = import ../websites/httpd-service-builder.nix { httpdName = "Tools"; withUsers = true; };

  databases  = ./databases;
  mariadb    = ./databases/mariadb.nix;
  openldap   = ./databases/openldap;
  postgresql = ./databases/postgresql.nix;
  redis      = ./databases/redis.nix;
  postgresqlReplication = ./databases/postgresql_replication.nix;
  mariadbReplication = ./databases/mariadb_replication.nix;
  redisReplication = ./databases/redis_replication.nix;
  openldapReplication = ./databases/openldap_replication.nix;

  websites = ./websites;


  # Personal websites
  capitainesLandingPages = ./websites/capitaines/landing_pages.nix;

  chloeInte = ./websites/chloe/integration.nix;
  chloeProd = ./websites/chloe/production.nix;

  connexionswingInte = ./websites/connexionswing/integration.nix;
  connexionswingProd = ./websites/connexionswing/production.nix;

  deniseDenisejeromeProd = ./websites/denise/denisejerome.nix;
  deniseEvariste = ./websites/denise/evariste.nix;

  emiliaMoodle = ./websites/emilia/moodle.nix;

  florianApp = ./websites/florian/app.nix;
  florianInte = ./websites/florian/integration.nix;
  florianProd = ./websites/florian/production.nix;

  immaeProd = ./websites/immae/production.nix;
  immaeRelease = ./websites/immae/release.nix;
  immaeTemp = ./websites/immae/temp.nix;

  isabelleAtenInte = ./websites/isabelle/aten_integration.nix;
  isabelleAtenProd = ./websites/isabelle/aten_production.nix;
  isabelleIridologie = ./websites/isabelle/iridologie.nix;

  jeromeNaturaloutil = ./websites/jerome/naturaloutil.nix;

  leilaProd = ./websites/leila/production.nix;

  ludivineInte = ./websites/ludivine/integration.nix;
  ludivineProd = ./websites/ludivine/production.nix;

  nassimeProd = ./websites/nassime/production.nix;

  nathanaelVillon = ./websites/nathanael/villon.nix;

  papaMaisonBbc = ./websites/papa/maison_bbc.nix;
  papaSurveillance = ./websites/papa/surveillance.nix;

  piedsjalouxInte = ./websites/piedsjaloux/integration.nix;
  piedsjalouxProd = ./websites/piedsjaloux/production.nix;

  richieProd = ./websites/richie/production.nix;

  sydenPeertube = ./websites/syden/peertube.nix;

  teliotortayProd = ./websites/telio_tortay/production.nix;

  # Tools
  cloudTool = ./websites/tools/cloud;
  davTool = ./websites/tools/dav;
  vpnTool = ./websites/tools/vpn;
  dbTool = ./websites/tools/db;
  diasporaTool = ./websites/tools/diaspora;
  etherTool = ./websites/tools/ether;
  gitTool = ./websites/tools/git;
  imTool = ./websites/tools/im;
  mastodonTool = ./websites/tools/mastodon;
  mgoblinTool = ./websites/tools/mgoblin;
  peertubeTool = ./websites/tools/peertube;
  toolsTool = ./websites/tools/tools;
  mailTool = ./websites/tools/mail;

  # Games
  codenamesGame = ./websites/tools/games/codenames;

  mail = ./mail;

  buildbot = ./buildbot;
  certificates = ./certificates.nix;
  gitolite = ./gitolite;
  irc = ./irc.nix;
  pub = ./pub;
  tasks = ./tasks;
  dns = ./dns.nix;
  ftp = ./ftp.nix;
  mpd = ./mpd.nix;
  ejabberd = ./ejabberd;
  ssh = ./ssh;
  monitoring = ./monitoring;
  status = ./monitoring/status.nix;
  vpn = ./vpn;

  environment = ./environment.nix;
  system = ./system.nix;
  loginctl-linger = ./loginctl-linger.nix;
};
in
builtins.listToAttrs (map (attr: { name = "priv${attr}"; value = set.${attr}; }) (builtins.attrNames set))