mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
f5c6d40c89
lix frozen-removed, rovr frozen-removed
38 lines
710 B
Nix
38 lines
710 B
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
xlib,
|
|
...
|
|
}:
|
|
let
|
|
master = import inputs.nixpkgs-master {
|
|
system = "x86_64-linux";
|
|
};
|
|
in
|
|
{
|
|
services = {
|
|
postgresql = {
|
|
enable = true;
|
|
package = pkgs.postgresql_17;
|
|
# dataDir = "${xlib.dirs.services-mnt-folder}/postgresql";
|
|
};
|
|
# postgresqlBackup.enable = true;
|
|
};
|
|
|
|
fileSystems."/var/lib/postgresql" = {
|
|
device = "${xlib.dirs.services-mnt-folder}/postgresql";
|
|
fsType = "none";
|
|
options = [
|
|
"bind"
|
|
"nofail"
|
|
];
|
|
};
|
|
|
|
systemd.tmpfiles.rules = [
|
|
"z ${xlib.dirs.services-mnt-folder}/postgresql 0760 postgres postgres -"
|
|
# "z ${config.services.postgresql.dataDir} 0760 postgres postgres -"
|
|
];
|
|
}
|