Skip to content

nixos/nextcloud: Remove admin user creation during installation - #571775

Merged
Ma27 merged 1 commit into
NixOS:masterfrom
provokateurin:nextcloud-remove-admin-user-creation-during-installation
Oct 18, 2026
Merged

Ma27 merged 1 commit into
NixOS:masterfrom
provokateurin:nextcloud-remove-admin-user-creation-during-installation

Conversation

@provokateurin

Copy link
Copy Markdown
Member

The adminuser and adminpassFile options are only used upon installation, so changing them later will have no effect, because users are part of the state and not the configuration.

Since Nextcloud 32 it is possible to skip the initial admin user creation and this module already supported it, so we always do that from now on instead of only when explicitly requested.

To create an admin user after the installation, use nextcloud-occ user:add <username> and nextcloud-occ group:adduser admin <username>.

Follow-up to #418378, where we already discussed removing it for 26.05, because that was going to be the first NixOS version with 32+ only.

Things done

@provokateurin
provokateurin requested a review from Ma27 October 8, 2026 15:55
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Oct 8, 2026
The adminuser and adminpassFile options are only used upon installation, so changing them later will have no effect, because users are part of the state and not the configuration.

Since Nextcloud 32 it is possible to skip the initial admin user creation and this module already supported it, so we always do that from now on instead of only when explicitly requested.

To create an admin user after the installation, use `nextcloud-occ user:add <username>` and `nextcloud-occ group:adduser admin <username>`.
@provokateurin
provokateurin force-pushed the nextcloud-remove-admin-user-creation-during-installation branch from 250aa3a to ab1d29b Compare October 9, 2026 07:01
@provokateurin
provokateurin requested a review from bachp October 9, 2026 07:01
@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 9, 2026
@Ma27
Ma27 added this pull request to the merge queue Oct 18, 2026
Merged via the queue into NixOS:master with commit 7939f54 Oct 18, 2026
33 of 35 checks passed
@provokateurin
provokateurin deleted the nextcloud-remove-admin-user-creation-during-installation branch October 19, 2026 05:39
@bjornfor

Copy link
Copy Markdown
Contributor

Why not rename the option and make it clear that it's an initial / one-time only thing? One thing I like about NixOS is the declarative deployment, and this feels like a step in the wrong direction.

britter added a commit to britter/nix-configuration that referenced this pull request Oct 22, 2026
* overlays: apply unmerged patch to python fabric
  The fabric package is required by azure-cli which is required by
  seeq-support.nix
* nextcloud: repo adminpassFile
  It was dropped from nixpkgs in
  NixOS/nixpkgs#571775.
* system-base: drop eMudhra fix
  It was merged into nixpkgs in
  NixOS/nixpkgs#576390.
* framework-13: fix issues introduced by flake update
  Backport the upstream fix
  NixOS/nixpkgs#575818
* calibre: disable speech support
  the speechd package in nixos-unstable never builds its Python
  bindings
* desktop-essentials: remove audacity because of build failures
sector1209 added a commit to sector1209/nix-config that referenced this pull request Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants