Go to file
Kristian Krsnik 01c18f1511 enable flakes with command line arguments 2023-08-17 18:09:27 +02:00
archetypes initial commit 2023-08-17 16:16:17 +02:00
content/posts small update 2023-08-17 16:23:47 +02:00
.envrc initial commit 2023-08-17 16:16:17 +02:00
.gitignore initial commit 2023-08-17 16:16:17 +02:00
.gitlab-ci.yml enable flakes with command line arguments 2023-08-17 18:09:27 +02:00
README.md updated 2023-08-17 17:07:46 +02:00
config.toml updated 2023-08-17 17:07:46 +02:00
flake.lock initial commit 2023-08-17 16:16:17 +02:00
flake.nix updated 2023-08-17 17:07:46 +02:00
menu.toml updated 2023-08-17 17:07:46 +02:00

README.md

Deploying to nginx webserver

Adapted from AveryanAlex's blog

{
  inputs.blog.url = "git+https://git.krsnik.at/Kristian/blog"
}

Setup nginx virtualHost to serve your site:

{ inputs, pkgs, ... }:
{
  services.nginx.virtualHosts."blog.krsnik.at" = {
    root = inputs.packages.default.${pkgs.hostPlatform.system};
    ssl = {
      enableACME = true;
      forceSSL = true;
    };
  };
}