aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/richie
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-05-10 19:10:05 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-05-11 16:38:15 +0200
commitdb343436f0e678ef3a97e6f8ac559ffa0507e422 (patch)
tree882fd0a0fa2fa41fac62a929a93aba09f5eea4d5 /modules/private/websites/richie
parent34c7b88e16d1768b1b9a0cfa6dd21ea5d9b1b308 (diff)
downloadNix-db343436f0e678ef3a97e6f8ac559ffa0507e422.tar.gz
Nix-db343436f0e678ef3a97e6f8ac559ffa0507e422.tar.zst
Nix-db343436f0e678ef3a97e6f8ac559ffa0507e422.zip
Migrate mylibs to niv (work in progress)
Diffstat (limited to 'modules/private/websites/richie')
-rw-r--r--modules/private/websites/richie/production.nix8
-rw-r--r--modules/private/websites/richie/richie.json14
2 files changed, 6 insertions, 16 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 @@
2let 2let
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;
diff --git a/modules/private/websites/richie/richie.json b/modules/private/websites/richie/richie.json
deleted file mode 100644
index f51d8c1..0000000
--- a/modules/private/websites/richie/richie.json
+++ /dev/null
@@ -1,14 +0,0 @@
1{
2 "tag": "11490d4-master",
3 "meta": {
4 "name": "richie",
5 "url": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Richie",
6 "branch": "master"
7 },
8 "git": {
9 "url": "ssh://gitolite@git.immae.eu/perso/Immae/Sites/Richie",
10 "rev": "11490d4591034deca7681aae8d9a22ca6cd8da4a",
11 "sha256": "1rlq5qkbaw9n7yxhyvvimrizwkpqlhhsc8mhipzxlwk1si81fci1",
12 "fetchSubmodules": true
13 }
14}