mirror of
https://github.com/oqyude/nixos.git
synced 2026-10-07 20:47:14 +03:00
28 lines
376 B
Nix
28 lines
376 B
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
xlib,
|
|
...
|
|
}:
|
|
let
|
|
storage = xlib.helpers.mkServiceStorage {
|
|
name = "postgresql";
|
|
user = "postgres";
|
|
group = "postgres";
|
|
mode = "0760";
|
|
};
|
|
in
|
|
{
|
|
services = {
|
|
postgresql = {
|
|
enable = true;
|
|
package = pkgs.postgresql_17;
|
|
};
|
|
# postgresqlBackup.enable = true;
|
|
};
|
|
|
|
systemd = storage.systemd;
|
|
}
|