]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/commitdiff
Stop using overlays in the middle of modules
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 9 Apr 2020 23:22:16 +0000 (01:22 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 24 Apr 2020 22:04:55 +0000 (00:04 +0200)
overlays/databases/postgresql/default.nix
overlays/default.nix
overlays/postfix/default.nix [new file with mode: 0644]

index ae5898779941417a1f644c30dd3240ee9e773673..50d949675313dd255c3a0982d4b403b1e95c5225 100644 (file)
@@ -1,5 +1,5 @@
 self: super: rec {
-  postgresql_11_custom = super.postgresql_11.overrideAttrs(old: {
+  postgresql = 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" ];
index 881083dd385e498fd2a6b88b7800dcdd2ec9b8f4..b3bc8caf4270b5278ec9e3ee7c5ba18e49abee82 100644 (file)
@@ -17,6 +17,7 @@
   nixops = import ./nixops;
   pass = import ./pass;
   pelican = import ./pelican;
+  postfix = import ./postfix;
   postgresql = import ./databases/postgresql;
   s6 = import ./s6;
   sc-im = import ./sc-im;
diff --git a/overlays/postfix/default.nix b/overlays/postfix/default.nix
new file mode 100644 (file)
index 0000000..55b8312
--- /dev/null
@@ -0,0 +1,3 @@
+self: super: {
+  postfix = super.postfix.override { withMySQL = true; };
+}