aboutsummaryrefslogtreecommitdiff
path: root/modules/website
diff options
context:
space:
mode:
Diffstat (limited to 'modules/website')
-rw-r--r--modules/website/default.nix20
-rw-r--r--modules/website/src/index.html4
-rw-r--r--modules/website/src/other-page.html4
3 files changed, 28 insertions, 0 deletions
diff --git a/modules/website/default.nix b/modules/website/default.nix
new file mode 100644
index 0000000..8fc2477
--- /dev/null
+++ b/modules/website/default.nix
@@ -0,0 +1,20 @@
+{
+ perSystem =
+ { pkgs, ... }:
+ {
+ packages.teh-website = pkgs.callPackage (
+ { stdenv, ... }:
+ stdenv.mkDerivation {
+ pname = "TehWebsite";
+ version = "0.0.1";
+
+ src = ./src;
+
+ installPhase = ''
+mkdir -p $out/srv/www
+cp -r ./* $out/srv/www
+'';
+ }
+ ) { };
+ };
+}
diff --git a/modules/website/src/index.html b/modules/website/src/index.html
new file mode 100644
index 0000000..a28d898
--- /dev/null
+++ b/modules/website/src/index.html
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<h1>Test</h1>
+<a href = "./other-page.html">Other page</a>
+<p>This websit was built and uploaded and hosted on my server using nix!!!</p>
diff --git a/modules/website/src/other-page.html b/modules/website/src/other-page.html
new file mode 100644
index 0000000..cbd5c8b
--- /dev/null
+++ b/modules/website/src/other-page.html
@@ -0,0 +1,4 @@
+<!DOCTYPE html>
+<h1>Other page</h1>
+<a href = "./index.html">Home</a>
+<p>Multipage test</p>