diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-12 00:24:23 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-20 04:12:27 +0100 |
commit | ab8f306d7c2c49b8116e1af7b355ed2384617ed9 (patch) | |
tree | d1061ec0436fd096de2332a892eb984c63cb125e /modules/private/websites/immae | |
parent | 4227853a03923e04daf3dd511a4b5a1ab5d527e7 (diff) | |
download | Nix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.tar.gz Nix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.tar.zst Nix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.zip |
Add specification for the private config file as a module.
Diffstat (limited to 'modules/private/websites/immae')
-rw-r--r-- | modules/private/websites/immae/production.nix | 4 | ||||
-rw-r--r-- | modules/private/websites/immae/release.nix | 4 | ||||
-rw-r--r-- | modules/private/websites/immae/temp.nix | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/modules/private/websites/immae/production.nix b/modules/private/websites/immae/production.nix index 3b2301a..12d6ddb 100644 --- a/modules/private/websites/immae/production.nix +++ b/modules/private/websites/immae/production.nix | |||
@@ -1,10 +1,10 @@ | |||
1 | { lib, pkgs, config, myconfig, ... }: | 1 | { lib, pkgs, config, ... }: |
2 | let | 2 | let |
3 | cfg = config.myServices.websites.immae.production; | 3 | cfg = config.myServices.websites.immae.production; |
4 | varDir = "/var/lib/buildbot/outputs/immaeEu"; | 4 | varDir = "/var/lib/buildbot/outputs/immaeEu"; |
5 | coursDir = "/var/lib/buildbot/outputs/cours"; | 5 | coursDir = "/var/lib/buildbot/outputs/cours"; |
6 | rechercheDir = "/var/lib/buildbot/outputs/recherche"; | 6 | rechercheDir = "/var/lib/buildbot/outputs/recherche"; |
7 | env = myconfig.env.websites.immae; | 7 | env = config.myEnv.websites.immae; |
8 | in { | 8 | in { |
9 | options.myServices.websites.immae.production.enable = lib.mkEnableOption "enable Immae's website"; | 9 | options.myServices.websites.immae.production.enable = lib.mkEnableOption "enable Immae's website"; |
10 | 10 | ||
diff --git a/modules/private/websites/immae/release.nix b/modules/private/websites/immae/release.nix index 5cc35ee..a503c90 100644 --- a/modules/private/websites/immae/release.nix +++ b/modules/private/websites/immae/release.nix | |||
@@ -1,8 +1,8 @@ | |||
1 | { lib, pkgs, config, myconfig, ... }: | 1 | { lib, pkgs, config, ... }: |
2 | let | 2 | let |
3 | cfg = config.myServices.websites.immae.release; | 3 | cfg = config.myServices.websites.immae.release; |
4 | varDir = "/var/lib/ftp/release.immae.eu"; | 4 | varDir = "/var/lib/ftp/release.immae.eu"; |
5 | env = myconfig.env.websites.release; | 5 | env = config.myEnv.websites.release; |
6 | in { | 6 | in { |
7 | options.myServices.websites.immae.release.enable = lib.mkEnableOption "enable Release' website"; | 7 | options.myServices.websites.immae.release.enable = lib.mkEnableOption "enable Release' website"; |
8 | 8 | ||
diff --git a/modules/private/websites/immae/temp.nix b/modules/private/websites/immae/temp.nix index 288c8cc..b3b28cc 100644 --- a/modules/private/websites/immae/temp.nix +++ b/modules/private/websites/immae/temp.nix | |||
@@ -1,8 +1,8 @@ | |||
1 | { lib, pkgs, config, myconfig, ... }: | 1 | { lib, pkgs, config, ... }: |
2 | let | 2 | let |
3 | cfg = config.myServices.websites.immae.temp; | 3 | cfg = config.myServices.websites.immae.temp; |
4 | varDir = "/var/lib/ftp/temp.immae.eu"; | 4 | varDir = "/var/lib/ftp/temp.immae.eu"; |
5 | env = myconfig.env.websites.temp; | 5 | env = config.myEnv.websites.temp; |
6 | in { | 6 | in { |
7 | options.myServices.websites.immae.temp.enable = lib.mkEnableOption "enable Temp' website"; | 7 | options.myServices.websites.immae.temp.enable = lib.mkEnableOption "enable Temp' website"; |
8 | 8 | ||