Home Explore Blog Models CI



nixpkgs

pkgs/servers/nextcloud/packages/README.md
17949a0e5c979abcb8b03c15545933280d337d37fe0d859200000003000006b7
## Updating apps

To regenerate the nixpkgs nextcloudPackages set, run:

```
./generate.sh
```

After that you can commit and submit the changes in a pull request.

## Adding apps

**Before adding an app and making a pull request to nixpkgs, please first update as described above in a separate commit.**

To extend the nextcloudPackages set, add a new line to the corresponding json
file with the id of the app:

- `nextcloud-apps.json` for apps

The app must be available in the official
[Nextcloud app store](https://apps.nextcloud.com).
https://apps.nextcloud.com. The id corresponds to the last part in the app url,
for example `breezedark` for the app with the url
`https://apps.nextcloud.com/apps/breezedark`.

Then regenerate the nixpkgs nextcloudPackages set by running:

```
./generate.sh
```

**Make sure that in this update, only the app added to `nextcloud-apps.json` gets updated.**

After that you can commit and submit the changes in a pull request.

## Usage with the Nextcloud module

The apps will be available in the namespace `nextcloud31Packages.apps` (and for older versions of Nextcloud similarly).
Using it together with the Nextcloud module could look like this:

```
{
  services.nextcloud = {
    enable = true;
    package = pkgs.nextcloud31;
    hostName = "localhost";
    config.adminpassFile = "${pkgs.writeText "adminpass" "hunter2"}";
    extraApps = with pkgs.nextcloud31Packages.apps; {
      inherit mail calendar contact;
    };
    extraAppsEnable = true;
  };
}
```

Adapt the version number in the Nextcloud package and nextcloudPackages set
according to the Nextcloud version you wish to use. There are several supported
stable Nextcloud versions available in the repository.

Chunks
3a982472 (1st chunk of `pkgs/servers/nextcloud/packages/README.md`)
Title: Managing Nextcloud Apps in Nixpkgs
Summary
This document outlines the process for managing Nextcloud applications within the Nixpkgs environment. It details how to update existing apps by running a `generate.sh` script and how to add new apps by first updating, then adding the app's ID to `nextcloud-apps.json`, and finally regenerating the package set. The document also provides an example of how to enable these apps using the `nextcloud` module in a NixOS configuration, specifying `extraApps` within the `services.nextcloud` block.