nix-server/modules/services/postgres.nix
2024-11-01 19:54:41 -07:00

17 lines
352 B
Nix
Executable file

{ config, lib, pkgs, options, ... }:
with lib;
let
cfg = config.modules.services.postgres;
in {
options.modules.services.postgres = {
enable = mkEnableOption "enable postgres, the database industry standard";
};
config = mkIf cfg.enable {
services.postgresql = {
enable = true;
package = pkgs.postgresql_14;
};
};
}