Fix nixfmt

This commit is contained in:
Fabian Hauser 2020-10-25 15:46:22 +01:00
parent ba7db5a22e
commit f343221d86
3 changed files with 10 additions and 13 deletions

View file

@ -1,5 +1,5 @@
{ config, pkgs, ... }: let { config, pkgs, ... }:
host = "chur.fh2.ch"; let host = "chur.fh2.ch";
in { in {
imports = [ imports = [
@ -16,5 +16,5 @@ in {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
}; };
} }

View file

@ -2,15 +2,12 @@
{ {
imports = [ imports = [ ../../role/database ];
../../role/database
];
services.postgresql = { services.postgresql = {
ensureDatabases = [ "nextcloud" ]; ensureDatabases = [ "nextcloud" ];
ensureUsers = [ ensureUsers = [{
{ name = "nextcloud"; name = "nextcloud";
ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES"; ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES";
} }];
];
}; };
} }

View file

@ -18,7 +18,7 @@
}; };
systemd.services."nextcloud-setup" = { systemd.services."nextcloud-setup" = {
requires = ["postgresql.service"]; requires = [ "postgresql.service" ];
after = ["postgresql.service"]; after = [ "postgresql.service" ];
}; };
} }