satoshipay: don't run postgres as a system daemon (use docker)
Alan Pearce alan@alanpearce.eu
Wed, 24 Feb 2021 15:03:54 +0100
1 files changed, 0 insertions(+), 24 deletions(-)
M system/settings/satoshipay.nix → system/settings/satoshipay.nix
@@ -30,30 +30,6 @@ ip6tables -A nixos-fw -p tcp --source ${dockerConfig.fixed-cidr-v6} -j nixos-fw-accept ip6tables -A nixos-fw -p udp --source ${dockerConfig.fixed-cidr-v6} -j nixos-fw-accept ''; - services.postgresql = { - enable = true; - ensureDatabases = ["satoshipay"]; - authentication = '' - # TYPE DATABASE USER ADDRESS METHOD - local all postgres trust - local all all md5 - ''; - ensureUsers = [ - { - name = "alan"; - ensurePermissions = { - "DATABASE satoshipay" = "ALL PRIVILEGES"; - }; - } - { - name = "satoshipay"; - ensurePermissions = { - "DATABASE satoshipay" = "ALL PRIVILEGES"; - }; - } - ]; - }; - nix.gc.dates = "12:30"; system.autoUpgrade.dates = "13:05";