options/machine: allow to define users without wheel

This commit is contained in:
Kevin Baensch 2025-07-04 16:52:46 +02:00
parent 87e83f336f
commit 88a6a90ab2
Signed by: derped
GPG key ID: C0F1D326C7626543
10 changed files with 26 additions and 25 deletions

View file

@ -21,7 +21,7 @@ mkIf (elem "nextcloud" config.machine.services) {
maxUploadSize = "1024M";
package = pkgs.nextcloud30;
config = {
adminuser = mkDefault (elemAt cfg.administrators 0).name;
adminuser = mkDefault (findFirst (user: user.isAdmin) { name = "admin"; } cfg.users).name;
adminpassFile = config.sops.secrets."services/nextcloud/adminPass".path;
dbtype = "mysql";
dbhost = "localhost:3306";