diff --git a/homelab-services/postgresql-db/flake.nix b/homelab-services/postgresql-db/flake.nix index 1d87dd2..8f19fa8 100644 --- a/homelab-services/postgresql-db/flake.nix +++ b/homelab-services/postgresql-db/flake.nix @@ -15,7 +15,7 @@ dataDir = lib.mkOption { type = lib.types.path; - default = "var/lib/postgresql"; + default = "/var/lib/postgresql"; description = "Where to store database data"; }; diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 23ff5c1..b13af21 100755 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -153,7 +153,7 @@ in # Postgresql/postgrest for text storage services.postgresql-db = { enable = true; - dataDir = "var/lib/postgresql"; + dataDir = "/var/lib/postgresql"; port = 5432; credentialsFile = config.sops.secrets."postgresql-credentials".path; databases = [ "rdblog" ];