whooops forgor
This commit is contained in:
parent
c0d6ee9e8b
commit
52506df236
1 changed files with 3 additions and 9 deletions
12
flake.nix
12
flake.nix
|
|
@ -124,17 +124,11 @@
|
|||
];
|
||||
|
||||
# Ensure database user exists
|
||||
services.postgresql.ensureUsers = let
|
||||
userAttrs = {
|
||||
services.postgresql.ensureUsers = [
|
||||
{
|
||||
name = cfg.phx.database.user;
|
||||
ensureDBOwnership = true;
|
||||
};
|
||||
userWithPassword =
|
||||
if cfg.phx.database.passwordFile != null
|
||||
then userAttrs // {passwordFile = cfg.phx.database.passwordFile;}
|
||||
else userAttrs;
|
||||
in [
|
||||
userWithPassword
|
||||
}
|
||||
];
|
||||
|
||||
systemd.services."zoeyscomputer-phx" = let
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue