diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-05-10 19:10:05 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-05-11 16:38:15 +0200 |
commit | db343436f0e678ef3a97e6f8ac559ffa0507e422 (patch) | |
tree | 882fd0a0fa2fa41fac62a929a93aba09f5eea4d5 /modules/private/websites/richie/production.nix | |
parent | 34c7b88e16d1768b1b9a0cfa6dd21ea5d9b1b308 (diff) | |
download | Nix-db343436f0e678ef3a97e6f8ac559ffa0507e422.tar.gz Nix-db343436f0e678ef3a97e6f8ac559ffa0507e422.tar.zst Nix-db343436f0e678ef3a97e6f8ac559ffa0507e422.zip |
Migrate mylibs to niv (work in progress)
Diffstat (limited to 'modules/private/websites/richie/production.nix')
-rw-r--r-- | modules/private/websites/richie/production.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/private/websites/richie/production.nix b/modules/private/websites/richie/production.nix index d7da458..a6957af 100644 --- a/modules/private/websites/richie/production.nix +++ b/modules/private/websites/richie/production.nix | |||
@@ -2,7 +2,11 @@ | |||
2 | let | 2 | let |
3 | cfg = config.myServices.websites.richie.production; | 3 | cfg = config.myServices.websites.richie.production; |
4 | vardir = "/var/lib/richie_production"; | 4 | vardir = "/var/lib/richie_production"; |
5 | richieSrc = pkgs.stdenv.mkDerivation (pkgs.mylibs.fetchedGitPrivate ./richie.json // { | 5 | richieSrc = pkgs.stdenv.mkDerivation rec { |
6 | version = pkgs.sources.websites-richie-app.version; | ||
7 | pname = "richie"; | ||
8 | name = "${pname}-${version}"; | ||
9 | src = pkgs.sources.websites-richie-app; | ||
6 | phases = "installPhase"; | 10 | phases = "installPhase"; |
7 | installPhase = '' | 11 | installPhase = '' |
8 | cp -a $src $out | 12 | cp -a $src $out |
@@ -12,7 +16,7 @@ let | |||
12 | ln -sf ${vardir}/photos $out/ | 16 | ln -sf ${vardir}/photos $out/ |
13 | sed -i "s@localedef --list-archive@localedef --list-archive /run/current-system/sw/lib/locale/locale-archive@" $out/admin/parametres.php | 17 | sed -i "s@localedef --list-archive@localedef --list-archive /run/current-system/sw/lib/locale/locale-archive@" $out/admin/parametres.php |
14 | ''; | 18 | ''; |
15 | }); | 19 | }; |
16 | webappdir = config.services.websites.webappDirsPaths.richie_production; | 20 | webappdir = config.services.websites.webappDirsPaths.richie_production; |
17 | secretPath = config.secrets.fullPaths."websites/richie/production"; | 21 | secretPath = config.secrets.fullPaths."websites/richie/production"; |
18 | apacheUser = config.services.httpd.Prod.user; | 22 | apacheUser = config.services.httpd.Prod.user; |