Commit graph

7 commits

Author SHA1 Message Date
a04a3c917f
nextcloud: add network to container
this appears to break nix in a way in which nix should not be possible to break.
2021-04-20 23:16:14 +02:00
2e9dc554df
fix nextcloud configuration error 2021-04-20 23:16:14 +02:00
0a3af8906d
nextcloud: add config options from previous instance
this includes mail, the instanceid, and the data directory.

ldap is excluded for now so we can first test how well this works at all.
2021-04-20 23:16:13 +02:00
7a41044210
nextcloud: add option for secret configs via a json file 2021-04-20 23:16:13 +02:00
b458d59693
nextcloud: enable module
(before, the relevant nixfiles were not actually imported into hainich's configuration)
2021-04-20 23:16:10 +02:00
e2d9f84109
nextcloud: fork module from nixpkgs and add extraOptions
- nextcloud now has its own container
 - redis caching appears to work
 - this now uses nextcloud 21
2021-04-20 23:15:41 +02:00
acbe0ac2a4
First draft for a nextcloud deployment on nix
Things to note:
 - DO NOT DEPLOY THIS
 - use nixos-container for testing instead

I've played around with nextcloud on NixOS, essentially following the
examples given in the NixOS manual and searching through some of the
other options. Nextcloud itself works fine with this setup, as does
its database (postgres), and most of the other basic stuff.

However, the nextcloud module as it currently exists appears to be fairly
limited and incomplete in its capabilities, e.g. lack of options for redis
or multiple php pools; in general, it lacks extraOptions-hooks. For redis
the documentation even explicitely notes (in caching.redis) that redis
requires additional options set in `config.php`, but it appears these cannot
currently be set using nix.

I guess we have as options:
 - I missed something and it does in fact work
 - we can wait for later versions; looks like 21.03 will add at least *some* more
 - we can fork the module and add options ourselves
 - we can configure it nextcloud by manually editing `config.php`, as it's not
   actually inside the nix store but at /var/lib/nextcloud/config (veto)

See comments for additional notes and todos.
2021-04-20 23:15:38 +02:00