depot/third_party/nixpkgs/pkgs/servers/nextcloud/packages
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00
..
apps Project import generated by Copybara. 2024-09-19 17:19:46 +03:00
28.json Project import generated by Copybara. 2024-10-04 18:56:33 +02:00
29.json Project import generated by Copybara. 2024-10-04 18:56:33 +02:00
30.json Project import generated by Copybara. 2024-10-04 18:56:33 +02:00
default.nix Project import generated by Copybara. 2024-09-19 17:19:46 +03:00
generate.sh Project import generated by Copybara. 2024-09-19 17:19:46 +03:00
nc-versions.nix Project import generated by Copybara. 2023-03-31 00:05:00 +02:00
nextcloud-apps.json Project import generated by Copybara. 2024-07-01 15:47:52 +00:00
README.md Project import generated by Copybara. 2024-04-21 17:54:59 +02:00
thirdparty.nix Project import generated by Copybara. 2024-09-19 17:19:46 +03:00

= Adding apps =

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. 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.

To regenerate the nixpkgs nextcloudPackages set, run:

./generate.sh

After that you can commit and submit the changes.

= Usage with the Nextcloud module =

The apps will be available in the namespace nextcloud25Packages.apps. Using it together with the Nextcloud module could look like this:

{
  services.nextcloud = {
    enable = true;
    package = pkgs.nextcloud25;
    hostName = "localhost";
    config.adminpassFile = "${pkgs.writeText "adminpass" "hunter2"}";
    extraApps = with pkgs.nextcloud25Packages.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.