-{ lib, pkgs, config, myconfig, mylibs, ... }:
+{ lib, pkgs, config, myconfig, ... }:
let
cfg = config.services.myDatabases;
in {
};
config = lib.mkIf cfg.enable {
+ nixpkgs.overlays = [ (self: super: rec {
+ postgresql = self.postgresql_11_custom;
+ }) ];
+
networking.firewall.allowedTCPPorts = [ 5432 ];
security.acme.certs."postgresql" = config.services.myCertificates.certConfig // {
'';
};
- mySecrets.keys = [
+ secrets.keys = [
{
dest = "postgresql/pam";
permissions = "0400";