diff --git a/lemmy-container.nix b/lemmy-container.nix index 1d4f936..aec19fe 100644 --- a/lemmy-container.nix +++ b/lemmy-container.nix @@ -90,7 +90,7 @@ in { requiredBy = [ "lemmy.service" "postgresql.service" ]; before = [ "lemmy.service" ]; after = [ "postgresql.service" ]; - path = with pkgs; [ pwgen config.services.postgresql.package ]; + path = with pkgs; [ sudo pwgen config.services.postgresql.package ]; script = '' PASSWD=$(pwgen 25) mkdir -p /run/lemmy