summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.envrc1
-rw-r--r--.gitignore1
-rw-r--r--flake.lock64
-rw-r--r--flake.nix47
l---------result1
-rw-r--r--site/.hugo_build.lock0
-rw-r--r--site/archetypes/default.md5
-rw-r--r--site/content/posts/my-first-post.md5
-rw-r--r--site/hugo.toml3
-rw-r--r--site/public/categories/index.xml11
-rw-r--r--site/public/index.xml19
-rw-r--r--site/public/posts/index.xml19
-rw-r--r--site/public/sitemap.xml18
-rw-r--r--site/public/tags/index.xml11
14 files changed, 205 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..3550a30
--- /dev/null
+++ b/.envrc
@@ -0,0 +1 @@
+use flake
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..92b2793
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.direnv
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..8b77dc4
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,64 @@
+{
+ "nodes": {
+ "flake-utils": {
+ "inputs": {
+ "systems": [
+ "systems"
+ ]
+ },
+ "locked": {
+ "lastModified": 1731533236,
+ "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1757034884,
+ "narHash": "sha256-PgLSZDBEWUHpfTRfFyklmiiLBE1i1aGCtz4eRA3POao=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "ca77296380960cd497a765102eeb1356eb80fed0",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixpkgs-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "flake-utils": "flake-utils",
+ "nixpkgs": "nixpkgs",
+ "systems": "systems"
+ }
+ },
+ "systems": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..d487c67
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,47 @@
+{
+ description = "Personal website";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+ systems.url = "github:nix-systems/default";
+ flake-utils = {
+ url = "github:numtide/flake-utils";
+ inputs.systems.follows = "systems";
+ };
+ };
+
+ outputs = {
+ nixpkgs,
+ flake-utils,
+ ...
+ }:
+ flake-utils.lib.eachDefaultSystem (
+ system: let
+ pkgs = nixpkgs.legacyPackages.${system};
+ lib = pkgs.lib;
+ in {
+ devShells.default = pkgs.mkShell {
+ packages = with pkgs; [
+ hugo
+ ];
+ };
+ packages.default = pkgs.stdenv.mkDerivation {
+ pname = "personal-website";
+ version = "1.0";
+
+ src = ./site;
+
+ nativeBuildInputs = [pkgs.hugo];
+
+ buildPhase = ''
+ hugo --minify
+ '';
+
+ installPhase = ''
+ mkdir -p $out
+ cp -r public/* $out
+ '';
+ };
+ }
+ );
+}
diff --git a/result b/result
new file mode 120000
index 0000000..b4c52c4
--- /dev/null
+++ b/result
@@ -0,0 +1 @@
+/nix/store/69nwhii4j6vsrzzy35xm7dd5y6myspg4-personal-website-1.0 \ No newline at end of file
diff --git a/site/.hugo_build.lock b/site/.hugo_build.lock
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/site/.hugo_build.lock
diff --git a/site/archetypes/default.md b/site/archetypes/default.md
new file mode 100644
index 0000000..25b6752
--- /dev/null
+++ b/site/archetypes/default.md
@@ -0,0 +1,5 @@
++++
+date = '{{ .Date }}'
+draft = true
+title = '{{ replace .File.ContentBaseName "-" " " | title }}'
++++
diff --git a/site/content/posts/my-first-post.md b/site/content/posts/my-first-post.md
new file mode 100644
index 0000000..9d29ff5
--- /dev/null
+++ b/site/content/posts/my-first-post.md
@@ -0,0 +1,5 @@
++++
+date = '2025-09-11T12:59:35-04:00'
+draft = true
+title = 'My First Post'
++++
diff --git a/site/hugo.toml b/site/hugo.toml
new file mode 100644
index 0000000..7e568b8
--- /dev/null
+++ b/site/hugo.toml
@@ -0,0 +1,3 @@
+baseURL = 'https://example.org/'
+languageCode = 'en-us'
+title = 'My New Hugo Site'
diff --git a/site/public/categories/index.xml b/site/public/categories/index.xml
new file mode 100644
index 0000000..216aed4
--- /dev/null
+++ b/site/public/categories/index.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>Categories on My New Hugo Site</title>
+ <link>http://localhost:1313/categories/</link>
+ <description>Recent content in Categories on My New Hugo Site</description>
+ <generator>Hugo</generator>
+ <language>en-us</language>
+ <atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" />
+ </channel>
+</rss>
diff --git a/site/public/index.xml b/site/public/index.xml
new file mode 100644
index 0000000..42a6ca8
--- /dev/null
+++ b/site/public/index.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>My New Hugo Site</title>
+ <link>http://localhost:1313/</link>
+ <description>Recent content on My New Hugo Site</description>
+ <generator>Hugo</generator>
+ <language>en-us</language>
+ <lastBuildDate>Thu, 11 Sep 2025 12:59:35 -0400</lastBuildDate>
+ <atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml" />
+ <item>
+ <title>My First Post</title>
+ <link>http://localhost:1313/posts/my-first-post/</link>
+ <pubDate>Thu, 11 Sep 2025 12:59:35 -0400</pubDate>
+ <guid>http://localhost:1313/posts/my-first-post/</guid>
+ <description></description>
+ </item>
+ </channel>
+</rss>
diff --git a/site/public/posts/index.xml b/site/public/posts/index.xml
new file mode 100644
index 0000000..d854af4
--- /dev/null
+++ b/site/public/posts/index.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>Posts on My New Hugo Site</title>
+ <link>http://localhost:1313/posts/</link>
+ <description>Recent content in Posts on My New Hugo Site</description>
+ <generator>Hugo</generator>
+ <language>en-us</language>
+ <lastBuildDate>Thu, 11 Sep 2025 12:59:35 -0400</lastBuildDate>
+ <atom:link href="http://localhost:1313/posts/index.xml" rel="self" type="application/rss+xml" />
+ <item>
+ <title>My First Post</title>
+ <link>http://localhost:1313/posts/my-first-post/</link>
+ <pubDate>Thu, 11 Sep 2025 12:59:35 -0400</pubDate>
+ <guid>http://localhost:1313/posts/my-first-post/</guid>
+ <description></description>
+ </item>
+ </channel>
+</rss>
diff --git a/site/public/sitemap.xml b/site/public/sitemap.xml
new file mode 100644
index 0000000..95e1f0b
--- /dev/null
+++ b/site/public/sitemap.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml">
+ <url>
+ <loc>http://localhost:1313/posts/my-first-post/</loc>
+ <lastmod>2025-09-11T12:59:35-04:00</lastmod>
+ </url><url>
+ <loc>http://localhost:1313/</loc>
+ <lastmod>2025-09-11T12:59:35-04:00</lastmod>
+ </url><url>
+ <loc>http://localhost:1313/posts/</loc>
+ <lastmod>2025-09-11T12:59:35-04:00</lastmod>
+ </url><url>
+ <loc>http://localhost:1313/categories/</loc>
+ </url><url>
+ <loc>http://localhost:1313/tags/</loc>
+ </url>
+</urlset>
diff --git a/site/public/tags/index.xml b/site/public/tags/index.xml
new file mode 100644
index 0000000..257f943
--- /dev/null
+++ b/site/public/tags/index.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?>
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>Tags on My New Hugo Site</title>
+ <link>http://localhost:1313/tags/</link>
+ <description>Recent content in Tags on My New Hugo Site</description>
+ <generator>Hugo</generator>
+ <language>en-us</language>
+ <atom:link href="http://localhost:1313/tags/index.xml" rel="self" type="application/rss+xml" />
+ </channel>
+</rss>