diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-12 13:18:51 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-12 13:22:43 +0200 |
commit | b9723c401f244f83d5cfc8074bdb5f6a98884f00 (patch) | |
tree | 51e2c74c6cfb34751c3510b20657f45709545132 /nixops/modules | |
parent | 8a964143a4173fcbd6f398fffee727f228f952fa (diff) | |
download | Nix-b9723c401f244f83d5cfc8074bdb5f6a98884f00.tar.gz Nix-b9723c401f244f83d5cfc8074bdb5f6a98884f00.tar.zst Nix-b9723c401f244f83d5cfc8074bdb5f6a98884f00.zip |
Use systemd RuntimeDirectory for postgresql
Diffstat (limited to 'nixops/modules')
-rw-r--r-- | nixops/modules/databases/postgresql.nix | 5 |
1 files changed, 1 insertions, 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 { | |||
30 | ''; | 30 | ''; |
31 | }; | 31 | }; |
32 | 32 | ||
33 | system.activationScripts.postgresql = '' | ||
34 | install -m 0755 -o postgres -g postgres -d ${myconfig.env.databases.postgresql.socket} | ||
35 | ''; | ||
36 | |||
37 | systemd.services.postgresql.serviceConfig.SupplementaryGroups = "keys"; | 33 | systemd.services.postgresql.serviceConfig.SupplementaryGroups = "keys"; |
34 | systemd.services.postgresql.serviceConfig.RuntimeDirectory = "postgresql"; | ||
38 | services.postgresql = rec { | 35 | services.postgresql = rec { |
39 | enable = cfg.postgresql.enable; | 36 | enable = cfg.postgresql.enable; |
40 | package = pkgs.postgresql; | 37 | package = pkgs.postgresql; |