Nextcloud: Difference between revisions

Remove Adding missing indices section, as https://github.com/NixOS/nixpkgs/pull/308291 was merged
Onny (talk | contribs)
Automatically select latest Nextcloud package for your release
Line 5: Line 5:
== Installation ==
== Installation ==


A minimal example to get a Nextcloud running on localhost should look like this, replacing  <code>PWD</code> with a 10+ char password that meets [https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/user_password_policy.html Nextcloud's default password policy].
A minimal example to get the latest Nextcloud version (for your specific NixOS release) running on localhost should look like this, replacing  <code>PWD</code> with a 10+ char password that meets [https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/user_password_policy.html Nextcloud's default password policy].


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
Line 11: Line 11:
services.nextcloud = {
services.nextcloud = {
   enable = true;
   enable = true;
  package = pkgs.nextcloud28;
   hostName = "localhost";
   hostName = "localhost";
   config.adminpassFile = "/etc/nextcloud-admin-pass";
   config.adminpassFile = "/etc/nextcloud-admin-pass";