]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Move some overlays to parent directory
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 2 May 2019 00:17:28 +0000 (02:17 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 2 May 2019 00:17:28 +0000 (02:17 +0200)
26 files changed:
nixops/eldiron.nix
nixops/modules/buildbot/default.nix
nixops/modules/databases/mysql.nix
nixops/modules/databases/postgresql.nix
nixops/modules/irc/default.nix
nixops/modules/websites/commons/stats.nix
nixops/modules/websites/tools/git/default.nix
nixops/modules/websites/tools/tools/default.nix
overlays/bitlbee/bitlbee_long_nicks.patch [moved from nixops/modules/irc/bitlbee_long_nicks.patch with 100% similarity]
overlays/bitlbee/default.nix [new file with mode: 0644]
overlays/databases/mysql/default.nix [new file with mode: 0644]
overlays/databases/postgresql/default.nix [new file with mode: 0644]
overlays/databases/postgresql/postgresql_run_socket_path.patch [moved from nixops/modules/databases/postgresql_run_socket_path.patch with 100% similarity]
overlays/default.nix
overlays/gitweb/default.nix [new file with mode: 0644]
overlays/gitweb/theme/git-favicon.png [moved from nixops/modules/websites/tools/git/gitweb/theme/git-favicon.png with 100% similarity]
overlays/gitweb/theme/git-logo.png [moved from nixops/modules/websites/tools/git/gitweb/theme/git-logo.png with 100% similarity]
overlays/gitweb/theme/gitweb.css [moved from nixops/modules/websites/tools/git/gitweb/theme/gitweb.css with 100% similarity]
overlays/gitweb/theme/gitweb.js [moved from nixops/modules/websites/tools/git/gitweb/theme/gitweb.js with 100% similarity]
overlays/python-packages/apprise/apprise.json [moved from nixops/modules/buildbot/apprise.json with 100% similarity]
overlays/python-packages/apprise/default.nix [new file with mode: 0644]
overlays/python-packages/default.nix [new file with mode: 0644]
overlays/python-packages/wokkel/default.nix [new file with mode: 0644]
overlays/ympd/default.nix [new file with mode: 0644]
overlays/ympd/ympd-password-env.patch [moved from nixops/modules/websites/tools/tools/ympd-password-env.patch with 100% similarity]
overlays/ympd/ympd.json [moved from nixops/modules/websites/tools/tools/ympd.json with 100% similarity]

index c1ccc42688a7794c7f5b35e202ebacfe660884d2..49940411c0b4972fcd42e573981586c8e4671b7a 100644 (file)
@@ -7,6 +7,7 @@
 
   eldiron = { config, pkgs, mylibs, myconfig, ... }:
   {
+    nixpkgs.overlays = builtins.attrValues (import ../overlays);
     _module.args = {
       pkgsNext = import <nixpkgsNext> {};
       pkgsPrevious = import <nixpkgsPrevious> {};
index 1c37e05df656f76288cf7d9f000cdf65b0fb049a..7632602b506e08933739552931410588a3c0da17 100644 (file)
@@ -62,33 +62,6 @@ in
   };
 
   config = lib.mkIf config.services.buildbot.enable {
-    nixpkgs.overlays = [ (self: super: rec {
-      python3 = super.python3.override {
-        packageOverrides = python-self: python-super: {
-          wokkel = python-self.buildPythonPackage rec {
-            pname = "wokkel";
-            version = "18.0.0";
-            src = python-self.fetchPypi {
-              inherit pname version;
-              sha256 = "1spq44gg8gsviqx1dvlmjpgfc0wk0jpyx4ap01y2pad1ai9cw016";
-            };
-            propagatedBuildInputs = with python-self; [ twisted.extras.tls twisted incremental dateutil ];
-            doChecks = false;
-          };
-          apprise = python-self.buildPythonPackage rec {
-            pname = "apprise";
-            version = "0.7.4";
-            src = (mylibs.fetchedGithub ./apprise.json).src;
-            propagatedBuildInputs = with python-self; [ decorator
-            requests requests_oauthlib oauthlib urllib3 six click
-            markdown pyyaml sleekxmpp
-            ];
-            doChecks = false;
-          };
-        };
-      };
-    }) ];
-
     ids.uids.buildbot = myconfig.env.buildbot.user.uid;
     ids.gids.buildbot = myconfig.env.buildbot.user.gid;
 
index a9ca8d326d1db8df00d21419c2586cdb7569af59..2d56155681c26c13631a41cf4a2e31454c77e5cb 100644 (file)
@@ -14,14 +14,6 @@ in {
   };
 
   config = lib.mkIf cfg.enable {
-    nixpkgs.overlays = [ (self: super: rec {
-      mariadb = mariadbPAM;
-      mariadbPAM = super.mariadb.overrideAttrs(old: rec {
-        cmakeFlags = old.cmakeFlags ++ [ "-DWITH_AUTHENTICATION_PAM=ON" ];
-        buildInputs = old.buildInputs ++ [ self.pam ];
-      });
-    }) ];
-
     networking.firewall.allowedTCPPorts = [ 3306 ];
 
     # for adminer, ssl is implemented with mysqli only, which is
index 62e9e34889eddcec1b62150262a80a32f49a154b..0afce70ceb8aa22b9311b69f53b36975ab15d721 100644 (file)
@@ -14,18 +14,6 @@ in {
   };
 
   config = lib.mkIf cfg.enable {
-    nixpkgs.overlays = [ (self: super: rec {
-      postgresql = postgresql_11;
-      postgresql_11 = super.postgresql_11.overrideAttrs(old: rec {
-        passthru = old.passthru // { psqlSchema = "11.0"; };
-        configureFlags = old.configureFlags ++ [ "--with-pam" ];
-        buildInputs = (old.buildInputs or []) ++ [ self.pam ];
-        patches = old.patches ++ [
-          ./postgresql_run_socket_path.patch
-        ];
-      });
-    }) ];
-
     networking.firewall.allowedTCPPorts = [ 5432 ];
 
     security.acme.certs."postgresql" = config.services.myCertificates.certConfig // {
index 37cb53b881429533666894d25ef456ea47951acb..4cf27e57acdeb3507a0f81f02795e283a2d2b934 100644 (file)
@@ -69,12 +69,6 @@ in
       '';
     };
 
-    nixpkgs.overlays = [ (self: super: rec {
-      bitlbee = super.bitlbee.overrideAttrs(old: {
-        patches = (old.patches or []) ++ [ ./bitlbee_long_nicks.patch ];
-      });
-    }) ];
-
     networking.firewall.allowedTCPPorts = [ 6697 ];
     services.bitlbee = {
       enable = true;
index 8d618c5cd61f73354d5b28a9feceee81f2104dc8..c70730376b4f06b59c85eb19057a77c63e8fb7fc 100644 (file)
@@ -23,13 +23,6 @@ in {
       pkgs.goaccess
     ];
 
-    nixpkgs.overlays = [ (self: super: rec {
-      goaccess = super.goaccess.overrideAttrs(old: rec {
-        configureFlags = old.configureFlags ++ [ "--enable-tcb=btree" ];
-        buildInputs = old.buildInputs ++ [ self.tokyocabinet self.bzip2 ];
-      });
-    }) ];
-
     services.cron = {
       enable = true;
       systemCronJobs = let
index 4a1457fd3f3f5666dac5063d0e3ec85eb7e1149f..dc44049220bca7aace5d94c77e7f954c46a38ee4 100644 (file)
@@ -15,14 +15,6 @@ in {
   config = lib.mkIf cfg.enable {
     security.acme.certs."eldiron".extraDomains."git.immae.eu" = null;
 
-    nixpkgs.overlays = [ (self: super: rec {
-      gitweb = super.gitweb.overrideAttrs(old: {
-        installPhase = old.installPhase + ''
-          cp -r ${./gitweb/theme} $out/gitweb-theme;
-          '';
-      });
-    }) ];
-
     mySecrets.keys = mantisbt.keys;
     services.myWebsites.tools.modules =
       gitweb.apache.modules ++
index 9be9d5dc59e6e676dd800939eb47a52530221712..827c5639bb0a28bd9b63d2d79e5ece134b307d68 100644 (file)
@@ -248,12 +248,6 @@ in {
       ln -s ${kanboard.webRoot} $out/webapps/${kanboard.apache.webappName}
       '';
 
-    nixpkgs.overlays = [ (self: super: rec {
-      ympd = super.ympd.overrideAttrs(old: mylibs.fetchedGithub ./ympd.json // {
-        patches = (old.patches or []) ++ [ ./ympd-password-env.patch ];
-      });
-    }) ];
-
     systemd.services.tt-rss = {
       description = "Tiny Tiny RSS feeds update daemon";
       serviceConfig = {
diff --git a/overlays/bitlbee/default.nix b/overlays/bitlbee/default.nix
new file mode 100644 (file)
index 0000000..5183d01
--- /dev/null
@@ -0,0 +1,5 @@
+self: super: {
+  bitlbee = super.bitlbee.overrideAttrs(old: {
+    patches = (old.patches or []) ++ [ ./bitlbee_long_nicks.patch ];
+  });
+}
diff --git a/overlays/databases/mysql/default.nix b/overlays/databases/mysql/default.nix
new file mode 100644 (file)
index 0000000..24bad1b
--- /dev/null
@@ -0,0 +1,7 @@
+self: super: rec {
+  mariadb = mariadbPAM;
+  mariadbPAM = super.mariadb.overrideAttrs(old: {
+    cmakeFlags = old.cmakeFlags ++ [ "-DWITH_AUTHENTICATION_PAM=ON" ];
+    buildInputs = old.buildInputs ++ [ self.pam ];
+  });
+}
diff --git a/overlays/databases/postgresql/default.nix b/overlays/databases/postgresql/default.nix
new file mode 100644 (file)
index 0000000..8dec7ff
--- /dev/null
@@ -0,0 +1,12 @@
+self: super: rec {
+  postgresql = postgresql_11;
+  postgresql_11 = super.postgresql_11.overrideAttrs(old: {
+    # datadir in /var/lib/postgresql is named after psqlSchema
+    passthru = old.passthru // { psqlSchema = "11.0"; };
+    configureFlags = old.configureFlags ++ [ "--with-pam" ];
+    buildInputs = (old.buildInputs or []) ++ [ self.pam ];
+    patches = old.patches ++ [
+      ./postgresql_run_socket_path.patch
+    ];
+  });
+}
index a2d9927c1976b2c67249c85b7b2fa57cf9be0a92..2e2cdd37f523db934cfd04192980f705b1002e0d 100644 (file)
@@ -1,15 +1,19 @@
 {
   mylibs = self: super: { mylibs = import ../libs.nix { nixpkgs = self; }; };
 
+  bitlbee = import ./bitlbee;
   dwm = import ./dwm;
   elinks = import ./elinks;
+  gitweb = import ./gitweb;
   goaccess = import ./goaccess;
   ldapvi = import ./ldapvi;
   lesspipe = import ./lesspipe;
+  mysql = import ./databases/mysql;
   neomutt = import ./neomutt;
   nixops = import ./nixops;
   pass = import ./pass;
   pelican = import ./pelican;
+  postgresql = import ./databases/postgresql;
   profanity = import ./profanity;
   sc-im = import ./sc-im;
   slrn = import ./slrn;
@@ -17,4 +21,6 @@
   vit = import ./vit;
   weboob = import ./weboob;
   weechat = import ./weechat;
+  ympd = import ./ympd;
 }
+// import ./python-packages
diff --git a/overlays/gitweb/default.nix b/overlays/gitweb/default.nix
new file mode 100644 (file)
index 0000000..aa17d22
--- /dev/null
@@ -0,0 +1,7 @@
+self: super: {
+  gitweb = super.gitweb.overrideAttrs(old: {
+    installPhase = old.installPhase + ''
+      cp -r ${./theme} $out/gitweb-theme;
+      '';
+  });
+}
diff --git a/overlays/python-packages/apprise/default.nix b/overlays/python-packages/apprise/default.nix
new file mode 100644 (file)
index 0000000..99e04ad
--- /dev/null
@@ -0,0 +1,16 @@
+self: super: {
+  python3 = super.python3.override {
+    packageOverrides = python-self: python-super: {
+      apprise = python-self.buildPythonPackage rec {
+        pname = "apprise";
+        version = "0.7.4";
+        src = (self.mylibs.fetchedGithub ./apprise.json).src;
+        propagatedBuildInputs = with python-self; [ decorator
+        requests requests_oauthlib oauthlib urllib3 six click
+        markdown pyyaml sleekxmpp
+        ];
+        doChecks = false;
+      };
+    };
+  };
+}
diff --git a/overlays/python-packages/default.nix b/overlays/python-packages/default.nix
new file mode 100644 (file)
index 0000000..7313f9e
--- /dev/null
@@ -0,0 +1,4 @@
+{
+  wokkel = import ./wokkel;
+  apprise = import ./apprise;
+}
diff --git a/overlays/python-packages/wokkel/default.nix b/overlays/python-packages/wokkel/default.nix
new file mode 100644 (file)
index 0000000..5d0ab4a
--- /dev/null
@@ -0,0 +1,16 @@
+self: super: {
+  python3 = super.python3.override {
+    packageOverrides = python-self: python-super: {
+      wokkel = python-self.buildPythonPackage rec {
+        pname = "wokkel";
+        version = "18.0.0";
+        src = python-self.fetchPypi {
+          inherit pname version;
+          sha256 = "1spq44gg8gsviqx1dvlmjpgfc0wk0jpyx4ap01y2pad1ai9cw016";
+        };
+        propagatedBuildInputs = with python-self; [ twisted.extras.tls twisted incremental dateutil ];
+        doChecks = false;
+      };
+    };
+  };
+}
diff --git a/overlays/ympd/default.nix b/overlays/ympd/default.nix
new file mode 100644 (file)
index 0000000..dda17aa
--- /dev/null
@@ -0,0 +1,5 @@
+self: super: {
+  ympd = super.ympd.overrideAttrs(old: self.mylibs.fetchedGithub ./ympd.json // {
+    patches = (old.patches or []) ++ [ ./ympd-password-env.patch ];
+  });
+}