nixos/shill: Add postgres container

This commit is contained in:
2022-06-06 17:52:36 +01:00
parent 3ec00b60f5
commit 646b582984
9 changed files with 121 additions and 36 deletions

View File

@@ -235,6 +235,16 @@ in
}
];
})
(mkIf config.services.postgresql.enable {
my.tmproot.persistence.config.directories = [
{
directory = "/var/lib/postgresql";
mode = "0750";
user = "postgres";
group = "postgres";
}
];
})
(mkIf config.my.build.isDevVM {
fileSystems = mkVMOverride {
# Hijack the "root" device for persistence in the VM