Wiki-js

From NixOS Wiki
Revision as of 18:36, 28 May 2024 by M3vtfbp (talk | contribs) (Created page with "Most basic Nix to get Wiki-js running on port 3000. systemd.services.wiki-js = { requires = [ "postgresql.service" ]; after = [ "postgresql.service" ]; }; services.wiki-js = { enable = true; settings.db = { db = "wiki-js"; host = "/run/postgresql"; type = "postgres"; user = "wiki-js"; }; }; services.postgresql = { enable = true; ensureDatabases = [ "wiki-js" ]; ensureUsers = [{ name = "wiki-js...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Most basic Nix to get Wiki-js running on port 3000.


 systemd.services.wiki-js = {
   requires = [ "postgresql.service" ];
   after    = [ "postgresql.service" ];
 };
 services.wiki-js = {
   enable = true;
   settings.db = {
     db  = "wiki-js";
     host = "/run/postgresql";
     type = "postgres";
     user = "wiki-js";
   };
 };
 services.postgresql = {
   enable = true;
   ensureDatabases = [ "wiki-js" ];
   ensureUsers = [{
     name = "wiki-js";
     ensureDBOwnership = true;
   }];
 };