Go to file
2023-08-17 20:07:30 +02:00
archetypes initial commit 2023-08-17 16:16:17 +02:00
content/posts changed to publish 2023-08-17 20:07:30 +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
config.toml added base url 2023-08-17 18:55:29 +02:00
flake.lock initial commit 2023-08-17 16:16:17 +02:00
flake.nix added base url 2023-08-17 18:55:29 +02:00
menu.toml updated 2023-08-17 17:07:46 +02:00
README.md test 2023-08-17 19:58:37 +02:00

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;
    };
  };
}

Test