options/machine: allow to define users without wheel
This commit is contained in:
parent
87e83f336f
commit
88a6a90ab2
10 changed files with 26 additions and 25 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue