diff --git a/README.md b/README.md index 885ac1b..fbd43da 100644 --- a/README.md +++ b/README.md @@ -1 +1,15 @@ NixOS deployments using [nixus](https://github.com/Infinisil/nixus). + +First make sure you have `niv` so you can upgrade dependency versions in `sources.json`. +```sh +$ nix-shell -p niv +$ (cd config/sources && niv update) +``` +Build with: +```sh +$ nix-build deploy/ +``` +Deploy by running the generated executable. +```sh +$ ./results +``` diff --git a/config/hosts/grondahl/services/nginx.nix b/config/hosts/grondahl/services/nginx.nix index d313927..9d2edcd 100644 --- a/config/hosts/grondahl/services/nginx.nix +++ b/config/hosts/grondahl/services/nginx.nix @@ -30,5 +30,12 @@ forceSSL = true; locations."/".proxyPass = "http://127.0.0.1:9000"; }; + "beanz.one" = { + forceSSL = true; + enableACME = true; + locations."/" = { + root = "/var/www/beanz.one/public"; + }; + }; }; }