update README

This commit is contained in:
Denis Lehmann 2021-08-23 19:45:11 +02:00
parent 9e5755ed22
commit c6690eeea2

View file

@ -13,11 +13,11 @@
If you want to host it (e.g. under /socialize.mybar.org/), grab the code, adjust anything to your liking and provide the =index.html= and =favicon.png= files via a webserver. If you want to host it (e.g. under /socialize.mybar.org/), grab the code, adjust anything to your liking and provide the =index.html= and =favicon.png= files via a webserver.
This web page is also available as [[https://nixos.wiki/wiki/Flakes][Nix Flake]]. This web page is also available as [[https://nixos.wiki/wiki/Flakes][Nix Flake]].
The two neccessary files are provided directly in =$out=. The two neccessary files are provided in =/var/www/socialize= of the flake output.
To use it for example with Nginx, the flake (included as =socialize=) content can be used like this: To use it for example with Nginx, the flake (included as =socialize=) content can be used like this:
#+begin_example nix #+begin_example nix
services.nginx.virtualHosts."example.org".locations."/".root = socialize.packages."<your-arch>".socialize; services.nginx.virtualHosts."example.org".locations."/".root = "${socialize.packages."<your-arch>".socialize}/var/www/socialize";
#+end_example #+end_example
** Adding questions ** Adding questions