Include sudo...hrrrm....

This commit is contained in:
niten 2024-01-25 22:50:22 -08:00
parent 12a2fe6ef8
commit f6a96c6572
1 changed files with 1 additions and 1 deletions

View File

@ -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