summaryrefslogtreecommitdiff
path: root/host/software
diff options
context:
space:
mode:
Diffstat (limited to 'host/software')
-rw-r--r--host/software/asset/blog.kummerlaender.eu-change-domain.patch11
-rw-r--r--host/software/blog.kummerlaender.eu.nix43
-rw-r--r--host/software/pkgs.kummerlaender.eu.nix13
3 files changed, 67 insertions, 0 deletions
diff --git a/host/software/asset/blog.kummerlaender.eu-change-domain.patch b/host/software/asset/blog.kummerlaender.eu-change-domain.patch
new file mode 100644
index 0000000..2a7c864
--- /dev/null
+++ b/host/software/asset/blog.kummerlaender.eu-change-domain.patch
@@ -0,0 +1,11 @@
+diff --git a/source/00_content/meta.xml b/source/00_content/meta.xml
+index 159ed2b..2debf84 100644
+--- a/source/00_content/meta.xml
++++ b/source/00_content/meta.xml
+@@ -2,5 +2,5 @@
+ <meta>
+ <title>/home/adrian</title>
+ <author>Adrian Kummerländer</author>
+- <url>http://localhost:8080</url>
++ <url>https://blog.kummerlaender.eu</url>
+ </meta>
diff --git a/host/software/blog.kummerlaender.eu.nix b/host/software/blog.kummerlaender.eu.nix
new file mode 100644
index 0000000..0b111ad
--- /dev/null
+++ b/host/software/blog.kummerlaender.eu.nix
@@ -0,0 +1,43 @@
+{ pkgs, ... }:
+
+let
+ mypkgs = import <mypkgs> { };
+
+ content = pkgs.stdenv.mkDerivation {
+ name = "blog.kummerlaender.eu";
+
+ src = pkgs.fetchFromGitHub {
+ owner = "KnairdA";
+ repo = "blog.kummerlaender.eu";
+ rev = "218123bcc40a82ec10bf4f1de372f72557aa0064";
+ sha256 = "1yhpvc0z7v5crvmyszzp9jcf23fd0pri6mrvn3k3bbycndmbs4gx";
+ };
+
+ LANG = "en_US.UTF-8";
+
+ buildInputs = [
+ pkgs.pandoc
+ pkgs.highlight
+ mypkgs.KaTeX
+ mypkgs.makeweb
+ ];
+
+ patches = [ ./asset/blog.kummerlaender.eu-change-domain.patch ];
+
+ installPhase = ''
+ makeweb
+ mkdir $out
+ cp -Lr target/99_result/* $out
+ '';
+ };
+in {
+ services.nginx.virtualHosts."blog.kummerlaender.eu" = {
+ addSSL = true;
+ enableACME = true;
+ locations = {
+ "/" = {
+ root = "${content}";
+ };
+ };
+ };
+}
diff --git a/host/software/pkgs.kummerlaender.eu.nix b/host/software/pkgs.kummerlaender.eu.nix
new file mode 100644
index 0000000..a41f55e
--- /dev/null
+++ b/host/software/pkgs.kummerlaender.eu.nix
@@ -0,0 +1,13 @@
+{ pkgs, ... }:
+
+{
+ services.nginx.virtualHosts."pkgs.kummerlaender.eu" = {
+ addSSL = true;
+ enableACME = true;
+ locations = {
+ "/nixexprs.tar.gz" = {
+ proxyPass = "http://localhost:3000/adrian/pkgs/archive/master.tar.gz";
+ };
+ };
+ };
+}