-{ lib, pkgs, config, myconfig, mylibs, ... }:
+{ lib, pkgs, config, myconfig, ... }:
let
cfg = config.services.myDatabases;
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;