X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fdatabases%2Fpostgresql.nix;h=de0820f238ef1559145c3e64ad0e14858a318ca2;hb=6c97d2d715620a1cdc3b8a785174590ec0dafb98;hp=37fcc1490862dafd575d728eb4a9e1b94c125832;hpb=8a964143a4173fcbd6f398fffee727f228f952fa;p=perso%2FImmae%2FConfig%2FNix.git 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;