From 648546b09dffcaed6a1a6018e783380e169ab9c3 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 7 Aug 2023 12:16:41 +0200 Subject: [PATCH] nixos/nextcloud: improve documentation of `adminuser`-option This option only has an effect on the initial setup of Nextcloud and changes later won't have any effect. Same issue as with `adminpassFile` - it's only passed to the installer command - but even worse because the username is frequently used as unique ID in the database, so there's no trivial way to change it, even imperatively. --- nixos/modules/services/web-apps/nextcloud.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index 503db124635..e0a7e7d4859 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -405,7 +405,11 @@ in { adminuser = mkOption { type = types.str; default = "root"; - description = lib.mdDoc "Username for the admin account."; + description = lib.mdDoc '' + Username for the admin account. The username is only set during the + initial setup of Nextcloud! Since the username also acts as unique + ID internally, it cannot be changed later! + ''; }; adminpassFile = mkOption { type = types.str;