From 05bdffa0a9955d39221b4ad538e44ec79a53c6be Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 17 Jan 2024 13:21:22 +0300 Subject: [PATCH] Simplify nextcloud systemd config --- hosts/cube/nextcloud/default.nix | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/hosts/cube/nextcloud/default.nix b/hosts/cube/nextcloud/default.nix index ab14cbd..8974728 100644 --- a/hosts/cube/nextcloud/default.nix +++ b/hosts/cube/nextcloud/default.nix @@ -16,23 +16,19 @@ in serverSystemConfiguration { }]; }; - systemd.services = { - phpfpm-nextcloud.aliases = [ "nextcloud.service" ]; + systemd.services.nextcloud-setup = { + after = [ "postgresql.service" ]; + requires = [ "postgresql.service" ]; - nextcloud-setup = { - after = [ "postgresql.service" ]; - requires = [ "postgresql.service" ]; + script = lib.mkAfter '' + nextcloud-occ theming:config name "RGBCube's Depot" + nextcloud-occ theming:config slogan "RGBCube's storage of insignificant data." - script = lib.mkAfter '' - nextcloud-occ theming:config name "RGBCube's Depot" - nextcloud-occ theming:config slogan "RGBCube's storage of insignificant data." + nextcloud-occ theming:config color "#000000" + nextcloud-occ theming:config background backgroundColor - nextcloud-occ theming:config color "#000000" - nextcloud-occ theming:config background backgroundColor - - nextcloud-occ theming:config logo ${./icon.gif} - ''; - }; + nextcloud-occ theming:config logo ${./icon.gif} + ''; }; services.nextcloud = enabled {