From f343221d864dbebb0e5cacebffa7b757165ff044 Mon Sep 17 00:00:00 2001 From: Fabian Hauser Date: Sun, 25 Oct 2020 15:46:22 +0100 Subject: [PATCH] Fix nixfmt --- host/montalin/applications/cloud.nix | 6 +++--- host/montalin/database.nix | 13 +++++-------- role/nextcloud/default.nix | 4 ++-- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/host/montalin/applications/cloud.nix b/host/montalin/applications/cloud.nix index d32c988..1287516 100644 --- a/host/montalin/applications/cloud.nix +++ b/host/montalin/applications/cloud.nix @@ -1,5 +1,5 @@ -{ config, pkgs, ... }: let - host = "chur.fh2.ch"; +{ config, pkgs, ... }: +let host = "chur.fh2.ch"; in { imports = [ @@ -16,5 +16,5 @@ in { forceSSL = true; enableACME = true; }; - + } diff --git a/host/montalin/database.nix b/host/montalin/database.nix index 4a91188..d57c325 100644 --- a/host/montalin/database.nix +++ b/host/montalin/database.nix @@ -2,15 +2,12 @@ { - imports = [ - ../../role/database - ]; + imports = [ ../../role/database ]; services.postgresql = { ensureDatabases = [ "nextcloud" ]; - ensureUsers = [ - { name = "nextcloud"; - ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES"; - } - ]; + ensureUsers = [{ + name = "nextcloud"; + ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES"; + }]; }; } diff --git a/role/nextcloud/default.nix b/role/nextcloud/default.nix index 1aea244..e59dbc5 100644 --- a/role/nextcloud/default.nix +++ b/role/nextcloud/default.nix @@ -18,7 +18,7 @@ }; systemd.services."nextcloud-setup" = { - requires = ["postgresql.service"]; - after = ["postgresql.service"]; + requires = [ "postgresql.service" ]; + after = [ "postgresql.service" ]; }; }