From 5b36d62d076d2f567d07549df1c8b8cbda13612d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 24 Feb 2021 15:03:54 +0100 Subject: satoshipay: don't run postgres as a system daemon (use docker) --- system/settings/satoshipay.nix | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/system/settings/satoshipay.nix b/system/settings/satoshipay.nix index 90517a61..351f3d34 100644 --- a/system/settings/satoshipay.nix +++ b/system/settings/satoshipay.nix @@ -30,30 +30,6 @@ in 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"; -- cgit 1.4.1