aboutsummaryrefslogtreecommitdiff
path: root/nixops/modules/websites/commons
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-05 10:30:30 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-05 10:30:30 +0200
commitee5c6141b0505df33036c91276ab13b0b5baa4c2 (patch)
treeceb2b5acec9c1631daf8842d9c91b58f890beca2 /nixops/modules/websites/commons
parent70dbb716ea6b7e02c8a13cf14be41319c592a30d (diff)
downloadNix-ee5c6141b0505df33036c91276ab13b0b5baa4c2.tar.gz
Nix-ee5c6141b0505df33036c91276ab13b0b5baa4c2.tar.zst
Nix-ee5c6141b0505df33036c91276ab13b0b5baa4c2.zip
Move unneeded system packages to a better place
Diffstat (limited to 'nixops/modules/websites/commons')
-rw-r--r--nixops/modules/websites/commons/stats.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixops/modules/websites/commons/stats.nix b/nixops/modules/websites/commons/stats.nix
index c707303..88559b1 100644
--- a/nixops/modules/websites/commons/stats.nix
+++ b/nixops/modules/websites/commons/stats.nix
@@ -19,7 +19,7 @@ in {
19 }; 19 };
20 20
21 config = lib.mkIf cfg.enable { 21 config = lib.mkIf cfg.enable {
22 environment.systemPackages = [ 22 users.users.root.packages = [
23 pkgs.goaccess 23 pkgs.goaccess
24 ]; 24 ];
25 25
@@ -39,7 +39,7 @@ in {
39 for i in /var/log/httpd/access_log-${domain}*.gz; do 39 for i in /var/log/httpd/access_log-${domain}*.gz; do
40 zcat "$i" | sed -n "/\\[$date_regex/ p" >> $TMPFILE 40 zcat "$i" | sed -n "/\\[$date_regex/ p" >> $TMPFILE
41 done 41 done
42 goaccess $TMPFILE --no-progress -o /var/lib/goaccess/${domain}/index.html -p ${conf} 42 ${pkgs.goaccess}/bin/goaccess $TMPFILE --no-progress -o /var/lib/goaccess/${domain}/index.html -p ${conf}
43 ''; 43 '';
44 in "${d}/bin/stats-${domain}"; 44 in "${d}/bin/stats-${domain}";
45 allStats = sites: pkgs.writeScript "stats" '' 45 allStats = sites: pkgs.writeScript "stats" ''