dotfiles/modules/services/postgres.nix
Jill ba4b977388 upgrade to NixOS 23.11
code-server has been Expunged. forgejo themes dropped for the time being since they were buggy anyways
2023-12-08 12:07:04 +01:00

21 lines
352 B
Nix

{ 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;
package = pkgs.postgresql_15;
};
};
}