1
0
Fork 0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-05-13 02:26:17 +02:00
git.oat.zone--dark-firepit-.../modules/services/postgres.nix

20 lines
316 B
Nix
Raw Normal View History

2022-01-11 18:44:40 +01:00
{ config, lib, pkgs, options, ... }:
with lib;
let
cfg = config.modules.services.postgres;
in {
options.modules.services.postgres = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
services.postgresql = {
enable = true;
};
};
}