aboutsummaryrefslogtreecommitdiff
path: root/virtual
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-10 23:02:54 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-01-10 23:20:03 +0100
commit091ae73429b8853e6ab971bffaccd84bdd59f40d (patch)
tree17ba770ff2e30c6f2b3f2e87dc8937093bd39e30 /virtual
parentad915416a6886010139413f4fbc41ed827336aa2 (diff)
downloadNix-091ae73429b8853e6ab971bffaccd84bdd59f40d.tar.gz
Nix-091ae73429b8853e6ab971bffaccd84bdd59f40d.tar.zst
Nix-091ae73429b8853e6ab971bffaccd84bdd59f40d.zip
Move packages fils to module
Diffstat (limited to 'virtual')
-rw-r--r--virtual/modules/websites.nix10
-rw-r--r--virtual/modules/websites/aten/aten.json (renamed from virtual/packages/aten.json)0
-rw-r--r--virtual/modules/websites/aten/aten.nix (renamed from virtual/packages/aten.nix)0
-rw-r--r--virtual/modules/websites/aten/default.nix (renamed from virtual/modules/websites/aten.nix)8
-rw-r--r--virtual/modules/websites/aten/goaccess.conf (renamed from virtual/packages/aten_goaccess.conf)0
-rw-r--r--virtual/modules/websites/chloe/chloe.json (renamed from virtual/packages/chloe.json)0
-rw-r--r--virtual/modules/websites/chloe/chloe.nix (renamed from virtual/packages/chloe.nix)6
-rw-r--r--virtual/modules/websites/chloe/chloe_config/chmod.php (renamed from virtual/packages/chloe_config/chmod.php)0
-rw-r--r--virtual/modules/websites/chloe/chloe_config/connect.php (renamed from virtual/packages/chloe_config/connect.php)0
-rw-r--r--virtual/modules/websites/chloe/chloe_config/ldap.php (renamed from virtual/packages/chloe_config/ldap.php)0
-rw-r--r--virtual/modules/websites/chloe/default.nix (renamed from virtual/modules/websites/chloe.nix)8
-rw-r--r--virtual/modules/websites/chloe/goaccess.conf (renamed from virtual/packages/chloe_goaccess.conf)0
-rw-r--r--virtual/modules/websites/commons/spip/spip_ldap_patch.patch (renamed from virtual/packages/spip_ldap_patch.patch)0
-rw-r--r--virtual/modules/websites/commons/spip/spip_mes_options.php (renamed from virtual/packages/spip_mes_options.php)0
-rw-r--r--virtual/modules/websites/connexionswing/connexionswing.json (renamed from virtual/packages/connexionswing_master.json)2
-rw-r--r--virtual/modules/websites/connexionswing/connexionswing.nix (renamed from virtual/packages/connexionswing.nix)2
-rw-r--r--virtual/modules/websites/connexionswing/default.nix (renamed from virtual/modules/websites/connexionswing.nix)8
-rw-r--r--virtual/modules/websites/connexionswing/goaccess.conf (renamed from virtual/packages/connexionswing_goaccess.conf)0
-rw-r--r--virtual/modules/websites/ludivine/default.nix (renamed from virtual/modules/websites/ludivine.nix)4
-rw-r--r--virtual/modules/websites/ludivine/goaccess.conf (renamed from virtual/packages/ludivinecassal_goaccess.conf)0
-rw-r--r--virtual/modules/websites/ludivine/ludivinecassal.json (renamed from virtual/packages/ludivinecassal_master.json)2
-rw-r--r--virtual/modules/websites/ludivine/ludivinecassal.nix (renamed from virtual/packages/ludivinecassal.nix)2
-rw-r--r--virtual/modules/websites/piedsjaloux/default.nix (renamed from virtual/modules/websites/piedsjaloux.nix)6
-rw-r--r--virtual/modules/websites/piedsjaloux/goaccess.conf (renamed from virtual/packages/piedsjaloux_goaccess.conf)0
-rw-r--r--virtual/modules/websites/piedsjaloux/piedsjaloux.json (renamed from virtual/packages/piedsjaloux.json)0
-rw-r--r--virtual/modules/websites/piedsjaloux/piedsjaloux.nix (renamed from virtual/packages/piedsjaloux.nix)0
26 files changed, 35 insertions, 23 deletions
diff --git a/virtual/modules/websites.nix b/virtual/modules/websites.nix
index cbd7de0..d794c7a 100644
--- a/virtual/modules/websites.nix
+++ b/virtual/modules/websites.nix
@@ -59,11 +59,11 @@ let
59in 59in
60{ 60{
61 imports = [ 61 imports = [
62 ./websites/chloe.nix 62 ./websites/chloe
63 ./websites/ludivine.nix 63 ./websites/ludivine
64 ./websites/aten.nix 64 ./websites/aten
65 ./websites/piedsjaloux.nix 65 ./websites/piedsjaloux
66 ./websites/connexionswing.nix 66 ./websites/connexionswing
67 # built using: 67 # built using:
68 # sed -e "s/services\.httpd/services\.httpdProd/g" .nix-defexpr/channels/nixpkgs/nixos/modules/services/web-servers/apache-httpd/default.nix 68 # sed -e "s/services\.httpd/services\.httpdProd/g" .nix-defexpr/channels/nixpkgs/nixos/modules/services/web-servers/apache-httpd/default.nix
69 # And removed users / groups 69 # And removed users / groups
diff --git a/virtual/packages/aten.json b/virtual/modules/websites/aten/aten.json
index 53569b6..53569b6 100644
--- a/virtual/packages/aten.json
+++ b/virtual/modules/websites/aten/aten.json
diff --git a/virtual/packages/aten.nix b/virtual/modules/websites/aten/aten.nix
index d67f7b7..d67f7b7 100644
--- a/virtual/packages/aten.nix
+++ b/virtual/modules/websites/aten/aten.nix
diff --git a/virtual/modules/websites/aten.nix b/virtual/modules/websites/aten/default.nix
index 4688db3..d9db75c 100644
--- a/virtual/modules/websites/aten.nix
+++ b/virtual/modules/websites/aten/default.nix
@@ -1,6 +1,6 @@
1{ lib, pkgs, config, mylibs, ... }: 1{ lib, pkgs, config, mylibs, ... }:
2let 2let
3 aten = pkgs.callPackage ../../packages/aten.nix { inherit (mylibs) checkEnv fetchedGitPrivate; }; 3 aten = pkgs.callPackage ./aten.nix { inherit (mylibs) checkEnv fetchedGitPrivate; };
4 aten_dev = aten { environment = "dev"; }; 4 aten_dev = aten { environment = "dev"; };
5 aten_prod = aten { environment = "prod"; }; 5 aten_prod = aten { environment = "prod"; };
6 6
@@ -15,13 +15,17 @@ in {
15 }; 15 };
16 }; 16 };
17 17
18 imports = [
19 ../commons/stats.nix
20 ];
21
18 config = lib.mkMerge [ 22 config = lib.mkMerge [
19 (lib.mkIf cfg.production.enable { 23 (lib.mkIf cfg.production.enable {
20 services.myWebsites.commons.stats.enable = true; 24 services.myWebsites.commons.stats.enable = true;
21 services.myWebsites.commons.stats.sites = [ 25 services.myWebsites.commons.stats.sites = [
22 { 26 {
23 name = "aten.pro"; 27 name = "aten.pro";
24 conf = ../../packages/aten_goaccess.conf; 28 conf = ./goaccess.conf;
25 } 29 }
26 ]; 30 ];
27 31
diff --git a/virtual/packages/aten_goaccess.conf b/virtual/modules/websites/aten/goaccess.conf
index 07cce57..07cce57 100644
--- a/virtual/packages/aten_goaccess.conf
+++ b/virtual/modules/websites/aten/goaccess.conf
diff --git a/virtual/packages/chloe.json b/virtual/modules/websites/chloe/chloe.json
index 686d751..686d751 100644
--- a/virtual/packages/chloe.json
+++ b/virtual/modules/websites/chloe/chloe.json
diff --git a/virtual/packages/chloe.nix b/virtual/modules/websites/chloe/chloe.nix
index 8633317..126d8e7 100644
--- a/virtual/packages/chloe.nix
+++ b/virtual/modules/websites/chloe/chloe.nix
@@ -21,7 +21,7 @@ let
21 php_admin_value[upload_max_filesize] = 20M 21 php_admin_value[upload_max_filesize] = 20M
22 php_admin_value[post_max_size] = 20M 22 php_admin_value[post_max_size] = 20M
23 ;php_admin_flag[log_errors] = on 23 ;php_admin_flag[log_errors] = on
24 php_admin_value[open_basedir] = "${./spip_mes_options.php}:${configDir}:${webRoot}:${varDir}:/tmp" 24 php_admin_value[open_basedir] = "${../commons/spip/spip_mes_options.php}:${configDir}:${webRoot}:${varDir}:/tmp"
25 php_admin_value[session.save_path] = "${varDir}/phpSessions" 25 php_admin_value[session.save_path] = "${varDir}/phpSessions"
26 env[SPIP_CONFIG_DIR] = "${configDir}" 26 env[SPIP_CONFIG_DIR] = "${configDir}"
27 env[SPIP_VAR_DIR] = "${varDir}" 27 env[SPIP_VAR_DIR] = "${varDir}"
@@ -114,10 +114,10 @@ let
114 url = "http://files.spip.org/spip/stable/spip-${version}.zip"; 114 url = "http://files.spip.org/spip/stable/spip-${version}.zip";
115 sha256 = "0cacpxs9nv61i3hzd3nbmplq4mp22s886llhacp3n4923jd6snx5"; 115 sha256 = "0cacpxs9nv61i3hzd3nbmplq4mp22s886llhacp3n4923jd6snx5";
116 }; 116 };
117 paches = [ ./spip_ldap_patch.patch ]; 117 paches = [ ../commons/spip/spip_ldap_patch.patch ];
118 buildPhase = '' 118 buildPhase = ''
119 rm -rf IMG local tmp config/remove.txt 119 rm -rf IMG local tmp config/remove.txt
120 ln -sf ${./spip_mes_options.php} config/mes_options.php 120 ln -sf ${../commons/spip/spip_mes_options.php} config/mes_options.php
121 echo "Require all denied" > "config/.htaccess" 121 echo "Require all denied" > "config/.htaccess"
122 ln -sf ../../../../../${varDir}/{IMG,local} . 122 ln -sf ../../../../../${varDir}/{IMG,local} .
123 ''; 123 '';
diff --git a/virtual/packages/chloe_config/chmod.php b/virtual/modules/websites/chloe/chloe_config/chmod.php
index aae16cd..aae16cd 100644
--- a/virtual/packages/chloe_config/chmod.php
+++ b/virtual/modules/websites/chloe/chloe_config/chmod.php
diff --git a/virtual/packages/chloe_config/connect.php b/virtual/modules/websites/chloe/chloe_config/connect.php
index 2e4439f..2e4439f 100644
--- a/virtual/packages/chloe_config/connect.php
+++ b/virtual/modules/websites/chloe/chloe_config/connect.php
diff --git a/virtual/packages/chloe_config/ldap.php b/virtual/modules/websites/chloe/chloe_config/ldap.php
index 825b7ed..825b7ed 100644
--- a/virtual/packages/chloe_config/ldap.php
+++ b/virtual/modules/websites/chloe/chloe_config/ldap.php
diff --git a/virtual/modules/websites/chloe.nix b/virtual/modules/websites/chloe/default.nix
index 3309dd2..72a9b6f 100644
--- a/virtual/modules/websites/chloe.nix
+++ b/virtual/modules/websites/chloe/default.nix
@@ -1,6 +1,6 @@
1{ lib, pkgs, config, mylibs, ... }: 1{ lib, pkgs, config, mylibs, ... }:
2let 2let
3 chloe = pkgs.callPackage ../../packages/chloe.nix { inherit (mylibs) checkEnv fetchedGitPrivate; }; 3 chloe = pkgs.callPackage ./chloe.nix { inherit (mylibs) checkEnv fetchedGitPrivate; };
4 chloe_dev = chloe { environment = "dev"; }; 4 chloe_dev = chloe { environment = "dev"; };
5 chloe_prod = chloe { environment = "prod"; }; 5 chloe_prod = chloe { environment = "prod"; };
6 6
@@ -15,13 +15,17 @@ in {
15 }; 15 };
16 }; 16 };
17 17
18 imports = [
19 ../commons/stats.nix
20 ];
21
18 config = lib.mkMerge [ 22 config = lib.mkMerge [
19 (lib.mkIf cfg.production.enable { 23 (lib.mkIf cfg.production.enable {
20 services.myWebsites.commons.stats.enable = true; 24 services.myWebsites.commons.stats.enable = true;
21 services.myWebsites.commons.stats.sites = [ 25 services.myWebsites.commons.stats.sites = [
22 { 26 {
23 name = "osteopathe-cc.fr"; 27 name = "osteopathe-cc.fr";
24 conf = ../../packages/chloe_goaccess.conf; 28 conf = ./goaccess.conf;
25 } 29 }
26 ]; 30 ];
27 31
diff --git a/virtual/packages/chloe_goaccess.conf b/virtual/modules/websites/chloe/goaccess.conf
index 89cff6d..89cff6d 100644
--- a/virtual/packages/chloe_goaccess.conf
+++ b/virtual/modules/websites/chloe/goaccess.conf
diff --git a/virtual/packages/spip_ldap_patch.patch b/virtual/modules/websites/commons/spip/spip_ldap_patch.patch
index 653c909..653c909 100644
--- a/virtual/packages/spip_ldap_patch.patch
+++ b/virtual/modules/websites/commons/spip/spip_ldap_patch.patch
diff --git a/virtual/packages/spip_mes_options.php b/virtual/modules/websites/commons/spip/spip_mes_options.php
index 8db8389..8db8389 100644
--- a/virtual/packages/spip_mes_options.php
+++ b/virtual/modules/websites/commons/spip/spip_mes_options.php
diff --git a/virtual/packages/connexionswing_master.json b/virtual/modules/websites/connexionswing/connexionswing.json
index 2e1775b..146c5f6 100644
--- a/virtual/packages/connexionswing_master.json
+++ b/virtual/modules/websites/connexionswing/connexionswing.json
@@ -1,7 +1,7 @@
1{ 1{
2 "tag": "0330478-master", 2 "tag": "0330478-master",
3 "meta": { 3 "meta": {
4 "name": "connexionswing_master", 4 "name": "connexionswing",
5 "url": "gitolite@git.immae.eu:perso/Immae/Projets/Connexionswing", 5 "url": "gitolite@git.immae.eu:perso/Immae/Projets/Connexionswing",
6 "branch": "master" 6 "branch": "master"
7 }, 7 },
diff --git a/virtual/packages/connexionswing.nix b/virtual/modules/websites/connexionswing/connexionswing.nix
index 1f3f2d5..90cca73 100644
--- a/virtual/packages/connexionswing.nix
+++ b/virtual/modules/websites/connexionswing/connexionswing.nix
@@ -148,7 +148,7 @@ let
148 fi 148 fi
149 ''; 149 '';
150 }; 150 };
151 webappDir = stdenv.mkDerivation (fetchedGitPrivate ./connexionswing_master.json // rec { 151 webappDir = stdenv.mkDerivation (fetchedGitPrivate ./connexionswing.json // rec {
152 # FIXME: can we do better than symlink? 152 # FIXME: can we do better than symlink?
153 # FIXME: imagick optional 153 # FIXME: imagick optional
154 # FIXME: initial sync 154 # FIXME: initial sync
diff --git a/virtual/modules/websites/connexionswing.nix b/virtual/modules/websites/connexionswing/default.nix
index 9fc0cec..636b16e 100644
--- a/virtual/modules/websites/connexionswing.nix
+++ b/virtual/modules/websites/connexionswing/default.nix
@@ -1,6 +1,6 @@
1{ lib, pkgs, config, mylibs, ... }: 1{ lib, pkgs, config, mylibs, ... }:
2let 2let
3 connexionswing = pkgs.callPackage ../../packages/connexionswing.nix { inherit (mylibs) checkEnv fetchedGitPrivate; }; 3 connexionswing = pkgs.callPackage ./connexionswing.nix { inherit (mylibs) checkEnv fetchedGitPrivate; };
4 connexionswing_dev = connexionswing { environment = "dev"; }; 4 connexionswing_dev = connexionswing { environment = "dev"; };
5 connexionswing_prod = connexionswing { environment = "prod"; }; 5 connexionswing_prod = connexionswing { environment = "prod"; };
6 6
@@ -15,13 +15,17 @@ in {
15 }; 15 };
16 }; 16 };
17 17
18 imports = [
19 ../commons/stats.nix
20 ];
21
18 config = lib.mkMerge [ 22 config = lib.mkMerge [
19 (lib.mkIf cfg.production.enable { 23 (lib.mkIf cfg.production.enable {
20 services.myWebsites.commons.stats.enable = true; 24 services.myWebsites.commons.stats.enable = true;
21 services.myWebsites.commons.stats.sites = [ 25 services.myWebsites.commons.stats.sites = [
22 { 26 {
23 name = "connexionswing.com"; 27 name = "connexionswing.com";
24 conf = ../../packages/connexionswing_goaccess.conf; 28 conf = ./goaccess.conf;
25 } 29 }
26 ]; 30 ];
27 31
diff --git a/virtual/packages/connexionswing_goaccess.conf b/virtual/modules/websites/connexionswing/goaccess.conf
index 05ad083..05ad083 100644
--- a/virtual/packages/connexionswing_goaccess.conf
+++ b/virtual/modules/websites/connexionswing/goaccess.conf
diff --git a/virtual/modules/websites/ludivine.nix b/virtual/modules/websites/ludivine/default.nix
index b3c1c51..ed719ba 100644
--- a/virtual/modules/websites/ludivine.nix
+++ b/virtual/modules/websites/ludivine/default.nix
@@ -1,6 +1,6 @@
1{ lib, pkgs, config, mylibs, ... }: 1{ lib, pkgs, config, mylibs, ... }:
2let 2let
3 ludivinecassal = pkgs.callPackage ../../packages/ludivinecassal.nix { inherit (mylibs) checkEnv fetchedGitPrivate; }; 3 ludivinecassal = pkgs.callPackage ./ludivinecassal.nix { inherit (mylibs) checkEnv fetchedGitPrivate; };
4 ludivinecassal_dev = ludivinecassal { environment = "dev"; }; 4 ludivinecassal_dev = ludivinecassal { environment = "dev"; };
5 ludivinecassal_prod = ludivinecassal { environment = "prod"; }; 5 ludivinecassal_prod = ludivinecassal { environment = "prod"; };
6 6
@@ -21,7 +21,7 @@ in {
21 services.myWebsites.commons.stats.sites = [ 21 services.myWebsites.commons.stats.sites = [
22 { 22 {
23 name = "ludivinecassal.com"; 23 name = "ludivinecassal.com";
24 conf = ../../packages/ludivinecassal_goaccess.conf; 24 conf = ./goaccess.conf;
25 } 25 }
26 ]; 26 ];
27 27
diff --git a/virtual/packages/ludivinecassal_goaccess.conf b/virtual/modules/websites/ludivine/goaccess.conf
index 25e5f63..25e5f63 100644
--- a/virtual/packages/ludivinecassal_goaccess.conf
+++ b/virtual/modules/websites/ludivine/goaccess.conf
diff --git a/virtual/packages/ludivinecassal_master.json b/virtual/modules/websites/ludivine/ludivinecassal.json
index 403f9b0..89667c0 100644
--- a/virtual/packages/ludivinecassal_master.json
+++ b/virtual/modules/websites/ludivine/ludivinecassal.json
@@ -1,7 +1,7 @@
1{ 1{
2 "tag": "4327b82-master", 2 "tag": "4327b82-master",
3 "meta": { 3 "meta": {
4 "name": "ludivinecassal_master", 4 "name": "ludivinecassal",
5 "url": "gitolite@git.immae.eu:perso/Immae/Sites/Ludivine", 5 "url": "gitolite@git.immae.eu:perso/Immae/Sites/Ludivine",
6 "branch": "master" 6 "branch": "master"
7 }, 7 },
diff --git a/virtual/packages/ludivinecassal.nix b/virtual/modules/websites/ludivine/ludivinecassal.nix
index eabb8fa..ac63735 100644
--- a/virtual/packages/ludivinecassal.nix
+++ b/virtual/modules/websites/ludivine/ludivinecassal.nix
@@ -148,7 +148,7 @@ let
148 fi 148 fi
149 ''; 149 '';
150 }; 150 };
151 webappDir = stdenv.mkDerivation (fetchedGitPrivate ./ludivinecassal_master.json // rec { 151 webappDir = stdenv.mkDerivation (fetchedGitPrivate ./ludivinecassal.json // rec {
152 # FIXME: can we do better than symlink? 152 # FIXME: can we do better than symlink?
153 # FIXME: initial sync 153 # FIXME: initial sync
154 # FIXME: backup 154 # FIXME: backup
diff --git a/virtual/modules/websites/piedsjaloux.nix b/virtual/modules/websites/piedsjaloux/default.nix
index 451ae52..bf74173 100644
--- a/virtual/modules/websites/piedsjaloux.nix
+++ b/virtual/modules/websites/piedsjaloux/default.nix
@@ -1,6 +1,6 @@
1{ lib, pkgs, config, mylibs, ... }: 1{ lib, pkgs, config, mylibs, ... }:
2let 2let
3 piedsjaloux = pkgs.callPackage ../../packages/piedsjaloux.nix { inherit (mylibs) checkEnv fetchedGitPrivate; }; 3 piedsjaloux = pkgs.callPackage ./piedsjaloux.nix { inherit (mylibs) checkEnv fetchedGitPrivate; };
4 piedsjaloux_dev = piedsjaloux { environment = "dev"; }; 4 piedsjaloux_dev = piedsjaloux { environment = "dev"; };
5 piedsjaloux_prod = piedsjaloux { environment = "prod"; }; 5 piedsjaloux_prod = piedsjaloux { environment = "prod"; };
6 6
@@ -16,7 +16,7 @@ in {
16 }; 16 };
17 17
18 imports = [ 18 imports = [
19 ./commons/stats.nix 19 ../commons/stats.nix
20 ]; 20 ];
21 21
22 config = lib.mkMerge [ 22 config = lib.mkMerge [
@@ -25,7 +25,7 @@ in {
25 services.myWebsites.commons.stats.sites = [ 25 services.myWebsites.commons.stats.sites = [
26 { 26 {
27 name = "piedsjaloux.fr"; 27 name = "piedsjaloux.fr";
28 conf = ../../packages/piedsjaloux_goaccess.conf; 28 conf = ./goaccess.conf;
29 } 29 }
30 ]; 30 ];
31 31
diff --git a/virtual/packages/piedsjaloux_goaccess.conf b/virtual/modules/websites/piedsjaloux/goaccess.conf
index 3950f7e..3950f7e 100644
--- a/virtual/packages/piedsjaloux_goaccess.conf
+++ b/virtual/modules/websites/piedsjaloux/goaccess.conf
diff --git a/virtual/packages/piedsjaloux.json b/virtual/modules/websites/piedsjaloux/piedsjaloux.json
index c4aae16..c4aae16 100644
--- a/virtual/packages/piedsjaloux.json
+++ b/virtual/modules/websites/piedsjaloux/piedsjaloux.json
diff --git a/virtual/packages/piedsjaloux.nix b/virtual/modules/websites/piedsjaloux/piedsjaloux.nix
index 1c3d8b7..1c3d8b7 100644
--- a/virtual/packages/piedsjaloux.nix
+++ b/virtual/modules/websites/piedsjaloux/piedsjaloux.nix