+
+- Farm :
+ Once a new instance thename is created, create the database:
+ ```
+ CREATE USER nextcloud_thename WITH PASSWORD 'somepassword';
+ CREATE DATABASE nextcloud_thename WITH OWNER nextcloud_thename;
+ ```
+ Then add this to the config.php:
+ ```
+ 'appstoreenabled' => false,
+ ```
+ Then run:
+ ```
+ nextcloud-occ-thename maintenance:install --database=pgsql --database-name=nextcloud_thename --database-host=/run/postgresql --database-user=nextcloud_thename --admin-user=immae --data-dir=/var/lib/nextcloud_farm/thename/data
+ ```
+ Finally, edit the config.php to add the correct trusted domain
+
+Flakes
+------
+
+Due to a bug in nix build, flakes that refer to relative path (input
+type "path") don't work when called via an url (nix build git+ssh://some-url).
+Relative paths (except in "flakes/private") should be renamed to
+git+https urls ideally. E.g.:
+```
+ inputs.libspf2 = {
+- path = "../libspf2";
+- type = "path";
++ url = "https://git.immae.eu/perso/Immae/Config/Nix.git";
++ type = "git";
++ dir = "flakes/libspf2";
+ };
+```
+