chore: apply nix fmt
This commit is contained in:
parent
caa6948199
commit
e2bd4444d2
47 changed files with 274 additions and 187 deletions
|
|
@ -7,7 +7,8 @@ let
|
|||
pgsqlEnable = config.machine.postgresql.enable;
|
||||
cfg = config.machine.nextcloud;
|
||||
in
|
||||
with lib; mkIf cfg.enable {
|
||||
with lib;
|
||||
mkIf cfg.enable {
|
||||
services.nextcloud.config =
|
||||
if pgsqlEnable then
|
||||
{
|
||||
|
|
@ -20,13 +21,15 @@ with lib; mkIf cfg.enable {
|
|||
dbhost = "localhost";
|
||||
};
|
||||
|
||||
services.postgresql = with lib; mkIf pgsqlEnable {
|
||||
ensureDatabases = [ "nextcloud" ];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "nextcloud";
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
services.postgresql =
|
||||
with lib;
|
||||
mkIf pgsqlEnable {
|
||||
ensureDatabases = [ "nextcloud" ];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "nextcloud";
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue