diff --git a/hosts/nixos/common/optional/services/postgres.nix b/hosts/nixos/common/optional/services/postgres.nix index 367ecaa..aec1668 100644 --- a/hosts/nixos/common/optional/services/postgres.nix +++ b/hosts/nixos/common/optional/services/postgres.nix @@ -1,3 +1,7 @@ { - environment.persistence."/persist/state".directories = [ "/var/lib/postgresql" ]; + environment.persistence."/persist/state".directories = [{ + directory = "/var/lib/postgresql"; + user = "postgres"; + group = "postgres"; + }]; }