summary refs log tree commit diff stats
path: root/modules/by-name/po/postgresql/module.nix
blob: 319c3ac5fb2a14d8f8e62e408268d999a5cbf51b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  config,
  lib,
  ...
}: let
  cfg = config.vhack.postgresql;
in {
  options.vhack.postgresql = {
    enable = lib.mkEnableOption "postgresql";
  };

  config = lib.mkIf cfg.enable {
    vhack.persist.directories = [
      "/var/lib/postgresql"
    ];

    services.postgresql.enable = true;
  };
}