aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-02 02:17:28 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-02 02:17:28 +0200
commitc1b6f97a72e0b4897ce11414df28259d4ea3c5ab (patch)
treef0fb690030fd261b32798f5084220a7f83a3fe61
parent5010032101ed3bceaa40fb0a631066e8098c1d7e (diff)
downloadNix-c1b6f97a72e0b4897ce11414df28259d4ea3c5ab.tar.gz
Nix-c1b6f97a72e0b4897ce11414df28259d4ea3c5ab.tar.zst
Nix-c1b6f97a72e0b4897ce11414df28259d4ea3c5ab.zip
Move some overlays to parent directory
-rw-r--r--nixops/eldiron.nix1
-rw-r--r--nixops/modules/buildbot/default.nix27
-rw-r--r--nixops/modules/databases/mysql.nix8
-rw-r--r--nixops/modules/databases/postgresql.nix12
-rw-r--r--nixops/modules/irc/default.nix6
-rw-r--r--nixops/modules/websites/commons/stats.nix7
-rw-r--r--nixops/modules/websites/tools/git/default.nix8
-rw-r--r--nixops/modules/websites/tools/tools/default.nix6
-rw-r--r--overlays/bitlbee/bitlbee_long_nicks.patch (renamed from nixops/modules/irc/bitlbee_long_nicks.patch)0
-rw-r--r--overlays/bitlbee/default.nix5
-rw-r--r--overlays/databases/mysql/default.nix7
-rw-r--r--overlays/databases/postgresql/default.nix12
-rw-r--r--overlays/databases/postgresql/postgresql_run_socket_path.patch (renamed from nixops/modules/databases/postgresql_run_socket_path.patch)0
-rw-r--r--overlays/default.nix6
-rw-r--r--overlays/gitweb/default.nix7
-rw-r--r--overlays/gitweb/theme/git-favicon.png (renamed from nixops/modules/websites/tools/git/gitweb/theme/git-favicon.png)bin1125 -> 1125 bytes
-rw-r--r--overlays/gitweb/theme/git-logo.png (renamed from nixops/modules/websites/tools/git/gitweb/theme/git-logo.png)bin2412 -> 2412 bytes
-rw-r--r--overlays/gitweb/theme/gitweb.css (renamed from nixops/modules/websites/tools/git/gitweb/theme/gitweb.css)0
-rw-r--r--overlays/gitweb/theme/gitweb.js (renamed from nixops/modules/websites/tools/git/gitweb/theme/gitweb.js)0
-rw-r--r--overlays/python-packages/apprise/apprise.json (renamed from nixops/modules/buildbot/apprise.json)0
-rw-r--r--overlays/python-packages/apprise/default.nix16
-rw-r--r--overlays/python-packages/default.nix4
-rw-r--r--overlays/python-packages/wokkel/default.nix16
-rw-r--r--overlays/ympd/default.nix5
-rw-r--r--overlays/ympd/ympd-password-env.patch (renamed from nixops/modules/websites/tools/tools/ympd-password-env.patch)0
-rw-r--r--overlays/ympd/ympd.json (renamed from nixops/modules/websites/tools/tools/ympd.json)0
26 files changed, 79 insertions, 74 deletions
diff --git a/nixops/eldiron.nix b/nixops/eldiron.nix
index c1ccc42..4994041 100644
--- a/nixops/eldiron.nix
+++ b/nixops/eldiron.nix
@@ -7,6 +7,7 @@
7 7
8 eldiron = { config, pkgs, mylibs, myconfig, ... }: 8 eldiron = { config, pkgs, mylibs, myconfig, ... }:
9 { 9 {
10 nixpkgs.overlays = builtins.attrValues (import ../overlays);
10 _module.args = { 11 _module.args = {
11 pkgsNext = import <nixpkgsNext> {}; 12 pkgsNext = import <nixpkgsNext> {};
12 pkgsPrevious = import <nixpkgsPrevious> {}; 13 pkgsPrevious = import <nixpkgsPrevious> {};
diff --git a/nixops/modules/buildbot/default.nix b/nixops/modules/buildbot/default.nix
index 1c37e05..7632602 100644
--- a/nixops/modules/buildbot/default.nix
+++ b/nixops/modules/buildbot/default.nix
@@ -62,33 +62,6 @@ in
62 }; 62 };
63 63
64 config = lib.mkIf config.services.buildbot.enable { 64 config = lib.mkIf config.services.buildbot.enable {
65 nixpkgs.overlays = [ (self: super: rec {
66 python3 = super.python3.override {
67 packageOverrides = python-self: python-super: {
68 wokkel = python-self.buildPythonPackage rec {
69 pname = "wokkel";
70 version = "18.0.0";
71 src = python-self.fetchPypi {
72 inherit pname version;
73 sha256 = "1spq44gg8gsviqx1dvlmjpgfc0wk0jpyx4ap01y2pad1ai9cw016";
74 };
75 propagatedBuildInputs = with python-self; [ twisted.extras.tls twisted incremental dateutil ];
76 doChecks = false;
77 };
78 apprise = python-self.buildPythonPackage rec {
79 pname = "apprise";
80 version = "0.7.4";
81 src = (mylibs.fetchedGithub ./apprise.json).src;
82 propagatedBuildInputs = with python-self; [ decorator
83 requests requests_oauthlib oauthlib urllib3 six click
84 markdown pyyaml sleekxmpp
85 ];
86 doChecks = false;
87 };
88 };
89 };
90 }) ];
91
92 ids.uids.buildbot = myconfig.env.buildbot.user.uid; 65 ids.uids.buildbot = myconfig.env.buildbot.user.uid;
93 ids.gids.buildbot = myconfig.env.buildbot.user.gid; 66 ids.gids.buildbot = myconfig.env.buildbot.user.gid;
94 67
diff --git a/nixops/modules/databases/mysql.nix b/nixops/modules/databases/mysql.nix
index a9ca8d3..2d56155 100644
--- a/nixops/modules/databases/mysql.nix
+++ b/nixops/modules/databases/mysql.nix
@@ -14,14 +14,6 @@ in {
14 }; 14 };
15 15
16 config = lib.mkIf cfg.enable { 16 config = lib.mkIf cfg.enable {
17 nixpkgs.overlays = [ (self: super: rec {
18 mariadb = mariadbPAM;
19 mariadbPAM = super.mariadb.overrideAttrs(old: rec {
20 cmakeFlags = old.cmakeFlags ++ [ "-DWITH_AUTHENTICATION_PAM=ON" ];
21 buildInputs = old.buildInputs ++ [ self.pam ];
22 });
23 }) ];
24
25 networking.firewall.allowedTCPPorts = [ 3306 ]; 17 networking.firewall.allowedTCPPorts = [ 3306 ];
26 18
27 # for adminer, ssl is implemented with mysqli only, which is 19 # for adminer, ssl is implemented with mysqli only, which is
diff --git a/nixops/modules/databases/postgresql.nix b/nixops/modules/databases/postgresql.nix
index 62e9e34..0afce70 100644
--- a/nixops/modules/databases/postgresql.nix
+++ b/nixops/modules/databases/postgresql.nix
@@ -14,18 +14,6 @@ in {
14 }; 14 };
15 15
16 config = lib.mkIf cfg.enable { 16 config = lib.mkIf cfg.enable {
17 nixpkgs.overlays = [ (self: super: rec {
18 postgresql = postgresql_11;
19 postgresql_11 = super.postgresql_11.overrideAttrs(old: rec {
20 passthru = old.passthru // { psqlSchema = "11.0"; };
21 configureFlags = old.configureFlags ++ [ "--with-pam" ];
22 buildInputs = (old.buildInputs or []) ++ [ self.pam ];
23 patches = old.patches ++ [
24 ./postgresql_run_socket_path.patch
25 ];
26 });
27 }) ];
28
29 networking.firewall.allowedTCPPorts = [ 5432 ]; 17 networking.firewall.allowedTCPPorts = [ 5432 ];
30 18
31 security.acme.certs."postgresql" = config.services.myCertificates.certConfig // { 19 security.acme.certs."postgresql" = config.services.myCertificates.certConfig // {
diff --git a/nixops/modules/irc/default.nix b/nixops/modules/irc/default.nix
index 37cb53b..4cf27e5 100644
--- a/nixops/modules/irc/default.nix
+++ b/nixops/modules/irc/default.nix
@@ -69,12 +69,6 @@ in
69 ''; 69 '';
70 }; 70 };
71 71
72 nixpkgs.overlays = [ (self: super: rec {
73 bitlbee = super.bitlbee.overrideAttrs(old: {
74 patches = (old.patches or []) ++ [ ./bitlbee_long_nicks.patch ];
75 });
76 }) ];
77
78 networking.firewall.allowedTCPPorts = [ 6697 ]; 72 networking.firewall.allowedTCPPorts = [ 6697 ];
79 services.bitlbee = { 73 services.bitlbee = {
80 enable = true; 74 enable = true;
diff --git a/nixops/modules/websites/commons/stats.nix b/nixops/modules/websites/commons/stats.nix
index 8d618c5..c707303 100644
--- a/nixops/modules/websites/commons/stats.nix
+++ b/nixops/modules/websites/commons/stats.nix
@@ -23,13 +23,6 @@ in {
23 pkgs.goaccess 23 pkgs.goaccess
24 ]; 24 ];
25 25
26 nixpkgs.overlays = [ (self: super: rec {
27 goaccess = super.goaccess.overrideAttrs(old: rec {
28 configureFlags = old.configureFlags ++ [ "--enable-tcb=btree" ];
29 buildInputs = old.buildInputs ++ [ self.tokyocabinet self.bzip2 ];
30 });
31 }) ];
32
33 services.cron = { 26 services.cron = {
34 enable = true; 27 enable = true;
35 systemCronJobs = let 28 systemCronJobs = let
diff --git a/nixops/modules/websites/tools/git/default.nix b/nixops/modules/websites/tools/git/default.nix
index 4a1457f..dc44049 100644
--- a/nixops/modules/websites/tools/git/default.nix
+++ b/nixops/modules/websites/tools/git/default.nix
@@ -15,14 +15,6 @@ in {
15 config = lib.mkIf cfg.enable { 15 config = lib.mkIf cfg.enable {
16 security.acme.certs."eldiron".extraDomains."git.immae.eu" = null; 16 security.acme.certs."eldiron".extraDomains."git.immae.eu" = null;
17 17
18 nixpkgs.overlays = [ (self: super: rec {
19 gitweb = super.gitweb.overrideAttrs(old: {
20 installPhase = old.installPhase + ''
21 cp -r ${./gitweb/theme} $out/gitweb-theme;
22 '';
23 });
24 }) ];
25
26 mySecrets.keys = mantisbt.keys; 18 mySecrets.keys = mantisbt.keys;
27 services.myWebsites.tools.modules = 19 services.myWebsites.tools.modules =
28 gitweb.apache.modules ++ 20 gitweb.apache.modules ++
diff --git a/nixops/modules/websites/tools/tools/default.nix b/nixops/modules/websites/tools/tools/default.nix
index 9be9d5d..827c563 100644
--- a/nixops/modules/websites/tools/tools/default.nix
+++ b/nixops/modules/websites/tools/tools/default.nix
@@ -248,12 +248,6 @@ in {
248 ln -s ${kanboard.webRoot} $out/webapps/${kanboard.apache.webappName} 248 ln -s ${kanboard.webRoot} $out/webapps/${kanboard.apache.webappName}
249 ''; 249 '';
250 250
251 nixpkgs.overlays = [ (self: super: rec {
252 ympd = super.ympd.overrideAttrs(old: mylibs.fetchedGithub ./ympd.json // {
253 patches = (old.patches or []) ++ [ ./ympd-password-env.patch ];
254 });
255 }) ];
256
257 systemd.services.tt-rss = { 251 systemd.services.tt-rss = {
258 description = "Tiny Tiny RSS feeds update daemon"; 252 description = "Tiny Tiny RSS feeds update daemon";
259 serviceConfig = { 253 serviceConfig = {
diff --git a/nixops/modules/irc/bitlbee_long_nicks.patch b/overlays/bitlbee/bitlbee_long_nicks.patch
index 70be092..70be092 100644
--- a/nixops/modules/irc/bitlbee_long_nicks.patch
+++ b/overlays/bitlbee/bitlbee_long_nicks.patch
diff --git a/overlays/bitlbee/default.nix b/overlays/bitlbee/default.nix
new file mode 100644
index 0000000..5183d01
--- /dev/null
+++ b/overlays/bitlbee/default.nix
@@ -0,0 +1,5 @@
1self: super: {
2 bitlbee = super.bitlbee.overrideAttrs(old: {
3 patches = (old.patches or []) ++ [ ./bitlbee_long_nicks.patch ];
4 });
5}
diff --git a/overlays/databases/mysql/default.nix b/overlays/databases/mysql/default.nix
new file mode 100644
index 0000000..24bad1b
--- /dev/null
+++ b/overlays/databases/mysql/default.nix
@@ -0,0 +1,7 @@
1self: super: rec {
2 mariadb = mariadbPAM;
3 mariadbPAM = super.mariadb.overrideAttrs(old: {
4 cmakeFlags = old.cmakeFlags ++ [ "-DWITH_AUTHENTICATION_PAM=ON" ];
5 buildInputs = old.buildInputs ++ [ self.pam ];
6 });
7}
diff --git a/overlays/databases/postgresql/default.nix b/overlays/databases/postgresql/default.nix
new file mode 100644
index 0000000..8dec7ff
--- /dev/null
+++ b/overlays/databases/postgresql/default.nix
@@ -0,0 +1,12 @@
1self: super: rec {
2 postgresql = postgresql_11;
3 postgresql_11 = super.postgresql_11.overrideAttrs(old: {
4 # datadir in /var/lib/postgresql is named after psqlSchema
5 passthru = old.passthru // { psqlSchema = "11.0"; };
6 configureFlags = old.configureFlags ++ [ "--with-pam" ];
7 buildInputs = (old.buildInputs or []) ++ [ self.pam ];
8 patches = old.patches ++ [
9 ./postgresql_run_socket_path.patch
10 ];
11 });
12}
diff --git a/nixops/modules/databases/postgresql_run_socket_path.patch b/overlays/databases/postgresql/postgresql_run_socket_path.patch
index b558c7b..b558c7b 100644
--- a/nixops/modules/databases/postgresql_run_socket_path.patch
+++ b/overlays/databases/postgresql/postgresql_run_socket_path.patch
diff --git a/overlays/default.nix b/overlays/default.nix
index a2d9927..2e2cdd3 100644
--- a/overlays/default.nix
+++ b/overlays/default.nix
@@ -1,15 +1,19 @@
1{ 1{
2 mylibs = self: super: { mylibs = import ../libs.nix { nixpkgs = self; }; }; 2 mylibs = self: super: { mylibs = import ../libs.nix { nixpkgs = self; }; };
3 3
4 bitlbee = import ./bitlbee;
4 dwm = import ./dwm; 5 dwm = import ./dwm;
5 elinks = import ./elinks; 6 elinks = import ./elinks;
7 gitweb = import ./gitweb;
6 goaccess = import ./goaccess; 8 goaccess = import ./goaccess;
7 ldapvi = import ./ldapvi; 9 ldapvi = import ./ldapvi;
8 lesspipe = import ./lesspipe; 10 lesspipe = import ./lesspipe;
11 mysql = import ./databases/mysql;
9 neomutt = import ./neomutt; 12 neomutt = import ./neomutt;
10 nixops = import ./nixops; 13 nixops = import ./nixops;
11 pass = import ./pass; 14 pass = import ./pass;
12 pelican = import ./pelican; 15 pelican = import ./pelican;
16 postgresql = import ./databases/postgresql;
13 profanity = import ./profanity; 17 profanity = import ./profanity;
14 sc-im = import ./sc-im; 18 sc-im = import ./sc-im;
15 slrn = import ./slrn; 19 slrn = import ./slrn;
@@ -17,4 +21,6 @@
17 vit = import ./vit; 21 vit = import ./vit;
18 weboob = import ./weboob; 22 weboob = import ./weboob;
19 weechat = import ./weechat; 23 weechat = import ./weechat;
24 ympd = import ./ympd;
20} 25}
26// import ./python-packages
diff --git a/overlays/gitweb/default.nix b/overlays/gitweb/default.nix
new file mode 100644
index 0000000..aa17d22
--- /dev/null
+++ b/overlays/gitweb/default.nix
@@ -0,0 +1,7 @@
1self: super: {
2 gitweb = super.gitweb.overrideAttrs(old: {
3 installPhase = old.installPhase + ''
4 cp -r ${./theme} $out/gitweb-theme;
5 '';
6 });
7}
diff --git a/nixops/modules/websites/tools/git/gitweb/theme/git-favicon.png b/overlays/gitweb/theme/git-favicon.png
index 4fa44bb..4fa44bb 100644
--- a/nixops/modules/websites/tools/git/gitweb/theme/git-favicon.png
+++ b/overlays/gitweb/theme/git-favicon.png
Binary files differ
diff --git a/nixops/modules/websites/tools/git/gitweb/theme/git-logo.png b/overlays/gitweb/theme/git-logo.png
index fdaf7b7..fdaf7b7 100644
--- a/nixops/modules/websites/tools/git/gitweb/theme/git-logo.png
+++ b/overlays/gitweb/theme/git-logo.png
Binary files differ
diff --git a/nixops/modules/websites/tools/git/gitweb/theme/gitweb.css b/overlays/gitweb/theme/gitweb.css
index 83e0742..83e0742 100644
--- a/nixops/modules/websites/tools/git/gitweb/theme/gitweb.css
+++ b/overlays/gitweb/theme/gitweb.css
diff --git a/nixops/modules/websites/tools/git/gitweb/theme/gitweb.js b/overlays/gitweb/theme/gitweb.js
index 72f3cfa..72f3cfa 100644
--- a/nixops/modules/websites/tools/git/gitweb/theme/gitweb.js
+++ b/overlays/gitweb/theme/gitweb.js
diff --git a/nixops/modules/buildbot/apprise.json b/overlays/python-packages/apprise/apprise.json
index b408ea4..b408ea4 100644
--- a/nixops/modules/buildbot/apprise.json
+++ b/overlays/python-packages/apprise/apprise.json
diff --git a/overlays/python-packages/apprise/default.nix b/overlays/python-packages/apprise/default.nix
new file mode 100644
index 0000000..99e04ad
--- /dev/null
+++ b/overlays/python-packages/apprise/default.nix
@@ -0,0 +1,16 @@
1self: super: {
2 python3 = super.python3.override {
3 packageOverrides = python-self: python-super: {
4 apprise = python-self.buildPythonPackage rec {
5 pname = "apprise";
6 version = "0.7.4";
7 src = (self.mylibs.fetchedGithub ./apprise.json).src;
8 propagatedBuildInputs = with python-self; [ decorator
9 requests requests_oauthlib oauthlib urllib3 six click
10 markdown pyyaml sleekxmpp
11 ];
12 doChecks = false;
13 };
14 };
15 };
16}
diff --git a/overlays/python-packages/default.nix b/overlays/python-packages/default.nix
new file mode 100644
index 0000000..7313f9e
--- /dev/null
+++ b/overlays/python-packages/default.nix
@@ -0,0 +1,4 @@
1{
2 wokkel = import ./wokkel;
3 apprise = import ./apprise;
4}
diff --git a/overlays/python-packages/wokkel/default.nix b/overlays/python-packages/wokkel/default.nix
new file mode 100644
index 0000000..5d0ab4a
--- /dev/null
+++ b/overlays/python-packages/wokkel/default.nix
@@ -0,0 +1,16 @@
1self: super: {
2 python3 = super.python3.override {
3 packageOverrides = python-self: python-super: {
4 wokkel = python-self.buildPythonPackage rec {
5 pname = "wokkel";
6 version = "18.0.0";
7 src = python-self.fetchPypi {
8 inherit pname version;
9 sha256 = "1spq44gg8gsviqx1dvlmjpgfc0wk0jpyx4ap01y2pad1ai9cw016";
10 };
11 propagatedBuildInputs = with python-self; [ twisted.extras.tls twisted incremental dateutil ];
12 doChecks = false;
13 };
14 };
15 };
16}
diff --git a/overlays/ympd/default.nix b/overlays/ympd/default.nix
new file mode 100644
index 0000000..dda17aa
--- /dev/null
+++ b/overlays/ympd/default.nix
@@ -0,0 +1,5 @@
1self: super: {
2 ympd = super.ympd.overrideAttrs(old: self.mylibs.fetchedGithub ./ympd.json // {
3 patches = (old.patches or []) ++ [ ./ympd-password-env.patch ];
4 });
5}
diff --git a/nixops/modules/websites/tools/tools/ympd-password-env.patch b/overlays/ympd/ympd-password-env.patch
index 2bbe188..2bbe188 100644
--- a/nixops/modules/websites/tools/tools/ympd-password-env.patch
+++ b/overlays/ympd/ympd-password-env.patch
diff --git a/nixops/modules/websites/tools/tools/ympd.json b/overlays/ympd/ympd.json
index 51f06d5..51f06d5 100644
--- a/nixops/modules/websites/tools/tools/ympd.json
+++ b/overlays/ympd/ympd.json