Nextcloud: Difference between revisions
imported>Bronson Add a link to the Nextcloud entry in the NixOS manual |
imported>Onny Ad info about adding apps |
||
Line 16: | Line 16: | ||
After that you will be able to login into your Nextcloud instance at http://localhost with user <code>root</code> and password <code>test123</code> as configured above. | After that you will be able to login into your Nextcloud instance at http://localhost with user <code>root</code> and password <code>test123</code> as configured above. | ||
== Upgrade == | == Configuration == | ||
=== Enable apps === | |||
Unfortunately Nextcloud apps are not yet packaged in the Nixpkgs repository. It is possibly to install them as usual in the app store of your Nextcloud instance by navigating in the profile menu to the site ''Apps''. | |||
Using the option <code>services.nextcloud.extraApps</code> it is possible to manually add and configure app-packages. In the following example the app ''Mail'' and ''Contacts'' is installed and enabled by default. | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
services.nextcloud = { | |||
enable = true; | |||
[...] | |||
extraApps = [ | |||
mail = pkgs.fetchNextcloudApp rec { | |||
url = "https://github.com/nextcloud-releases/mail/releases/download/v1.14.1/mail-v1.14.1.tar.gz"; | |||
sha256 = "sha256-sQUsYC3cco6fj9pF2l1NrCEhA3KJoOvJRhXvBlVpNqo="; | |||
}; | |||
contacts = pkgs.fetchNextcloudApp rec { | |||
url = "https://github.com/nextcloud-releases/contacts/releases/download/v4.2.2/contacts-v4.2.2.tar.gz"; | |||
sha256 = "sha256-eTc51pkg3OdHJB7X4/hD39Ce+9vKzw1nlJ7BhPOzdy0="; | |||
}; | |||
]; | |||
extraAppsEnable = true | |||
}; | |||
</nowiki>}} | |||
Using this method you'll have to manually add the most recent release tarball from the [https://apps.nextcloud.com/apps Nextcloud app store] and update the checksums. | |||
== Maintenance == | |||
=== Upgrade === | |||
As you can see on [https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=nextcloud the package search], there is no default nextcloud package. Instead you have to set the current version in [https://search.nixos.org/options?channel=unstable&show=services.nextcloud.package&from=0&size=50&sort=relevance&type=packages&query=nextcloud <code>services.nextcloud.package</code>]. As soon a major version of Nextcloud gets unsupported, it will be removed from nixpkgs as well. | As you can see on [https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=nextcloud the package search], there is no default nextcloud package. Instead you have to set the current version in [https://search.nixos.org/options?channel=unstable&show=services.nextcloud.package&from=0&size=50&sort=relevance&type=packages&query=nextcloud <code>services.nextcloud.package</code>]. As soon a major version of Nextcloud gets unsupported, it will be removed from nixpkgs as well. |