mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
123
This commit is contained in:
@@ -16,13 +16,21 @@ in
|
||||
postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_17;
|
||||
dataDir = "${xlib.dirs.services-mnt-folder}/postgresql";
|
||||
# dataDir = "${xlib.dirs.services-mnt-folder}/postgresql";
|
||||
};
|
||||
# postgresqlBackup.enable = true;
|
||||
};
|
||||
|
||||
fileSystems."${config.services.postgresql.dataDir}" = {
|
||||
device = "${xlib.dirs.services-mnt-folder}/postgresql";
|
||||
options = [
|
||||
"bind"
|
||||
"nofail"
|
||||
];
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
# "z ${xlib.dirs.postgresql-folder} 0760 postgres postgres -"
|
||||
"z ${config.services.postgresql.dataDir} 0760 postgres postgres -"
|
||||
"z ${xlib.dirs.services-mnt-folder}/postgresql 0760 postgres postgres -"
|
||||
# "z ${config.services.postgresql.dataDir} 0760 postgres postgres -"
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user