]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - DOCUMENTATION.md
Install dolibarr for nicecoop
[perso/Immae/Config/Nix.git] / DOCUMENTATION.md
index 1697299e34025ffb8d8a407b42a667a62c6cf362..4def9de79877bcec150a3bb658ace5f1be70b53a 100644 (file)
@@ -180,7 +180,7 @@ Things to look at during upgrades:
 Upgrade to latest unstable
 -------------------
 
-- Nothing in particular yet
+- Weechat: https://specs.weechat.org/specs/001285-follow-xdg-base-dir-spec.html
 
 Etherpad-lite
 -------------
@@ -236,6 +236,10 @@ Nextcloud
 ---------
 
 - Do not skip major versions!
+- Update all the apps: check on https://apps.nextcloud.com/ and build with
+  ```
+  nix-build -E "with import <nixpkgs> {};webapps.nextcloud.withApps (a: builtins.attrValues webapps.nextcloud.allApps)"
+  ```
 - Put nextcloud in maintenance mode :
   ```
   nextcloud-occ maintenance:mode --on
@@ -255,3 +259,37 @@ Nextcloud
   ```
 - Issues :
   https://docs.nextcloud.com/server/16/admin_manual/maintenance/manual_upgrade.html
+
+- 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";
+    };
+```
+