From b9723c401f244f83d5cfc8074bdb5f6a98884f00 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 12 May 2019 13:18:51 +0200 Subject: [PATCH] Use systemd RuntimeDirectory for postgresql --- nixops/modules/databases/postgresql.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nixops/modules/databases/postgresql.nix b/nixops/modules/databases/postgresql.nix index 37fcc14..de0820f 100644 --- a/nixops/modules/databases/postgresql.nix +++ b/nixops/modules/databases/postgresql.nix @@ -30,11 +30,8 @@ in { ''; }; - system.activationScripts.postgresql = '' - install -m 0755 -o postgres -g postgres -d ${myconfig.env.databases.postgresql.socket} - ''; - systemd.services.postgresql.serviceConfig.SupplementaryGroups = "keys"; + systemd.services.postgresql.serviceConfig.RuntimeDirectory = "postgresql"; services.postgresql = rec { enable = cfg.postgresql.enable; package = pkgs.postgresql; -- 2.41.0