X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fdatabases%2Fpostgresql.nix;h=37fcc1490862dafd575d728eb4a9e1b94c125832;hb=8a964143a4173fcbd6f398fffee727f228f952fa;hp=62e9e34889eddcec1b62150262a80a32f49a154b;hpb=7178c2b1009694c8a750dcd376a36c3d4bf90cf4;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/databases/postgresql.nix b/nixops/modules/databases/postgresql.nix index 62e9e34..37fcc14 100644 --- a/nixops/modules/databases/postgresql.nix +++ b/nixops/modules/databases/postgresql.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, config, myconfig, mylibs, ... }: +{ lib, pkgs, config, myconfig, ... }: let cfg = config.services.myDatabases; in { @@ -15,15 +15,7 @@ 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 - ]; - }); + postgresql = self.postgresql_11_custom; }) ]; networking.firewall.allowedTCPPorts = [ 5432 ]; @@ -77,7 +69,7 @@ in { ''; }; - mySecrets.keys = [ + secrets.keys = [ { dest = "postgresql/pam"; permissions = "0400";