1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/pkgs/servers/nextcloud/packages
2024-07-13 18:32:34 -04:00
..
28.json nextcloud28Packages: update 2024-07-13 18:32:28 -04:00
29.json nextcloud29Packages: update 2024-07-13 18:32:34 -04:00
default.nix nextcloudPackages: Revamp package generation script 2024-07-13 18:32:19 -04:00
generate.sh nextcloudPackages: Revamp package generation script 2024-07-13 18:32:19 -04:00
nc-versions.nix
nextcloud-apps.json nextcloudPackages.integration_paperless: init 2024-06-18 21:46:31 +02:00
README.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01: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.