summary refs log tree commit diff stats
path: root/system/settings
diff options
context:
space:
mode:
authorAlan Pearce2021-02-24 15:03:54 +0100
committerAlan Pearce2021-02-24 15:03:54 +0100
commit5b36d62d076d2f567d07549df1c8b8cbda13612d (patch)
tree9b619087b9ec8eed17d6d6f24e19297358495d63 /system/settings
parenta4d0a3c574f960ef1304c6f01f56cbb0e96aa014 (diff)
downloadnixfiles-5b36d62d076d2f567d07549df1c8b8cbda13612d.tar.lz
nixfiles-5b36d62d076d2f567d07549df1c8b8cbda13612d.tar.zst
nixfiles-5b36d62d076d2f567d07549df1c8b8cbda13612d.zip
satoshipay: don't run postgres as a system daemon (use docker)
Diffstat (limited to 'system/settings')
-rw-r--r--system/settings/satoshipay.nix24
1 files changed, 0 insertions, 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";