From 7d8b653b2299f11536da47ed4412d82bb4ffb99d Mon Sep 17 00:00:00 2001 From: triethyl Date: Thu, 11 Sep 2025 13:06:03 -0400 Subject: initialized --- .envrc | 1 + .gitignore | 1 + flake.lock | 64 +++++++++++++++++++++++++++++++++++++ flake.nix | 47 +++++++++++++++++++++++++++ result | 1 + site/.hugo_build.lock | 0 site/archetypes/default.md | 5 +++ site/content/posts/my-first-post.md | 5 +++ site/hugo.toml | 3 ++ site/public/categories/index.xml | 11 +++++++ site/public/index.xml | 19 +++++++++++ site/public/posts/index.xml | 19 +++++++++++ site/public/sitemap.xml | 18 +++++++++++ site/public/tags/index.xml | 11 +++++++ 14 files changed, 205 insertions(+) create mode 100644 .envrc create mode 100644 .gitignore create mode 100644 flake.lock create mode 100644 flake.nix create mode 120000 result create mode 100644 site/.hugo_build.lock create mode 100644 site/archetypes/default.md create mode 100644 site/content/posts/my-first-post.md create mode 100644 site/hugo.toml create mode 100644 site/public/categories/index.xml create mode 100644 site/public/index.xml create mode 100644 site/public/posts/index.xml create mode 100644 site/public/sitemap.xml create mode 100644 site/public/tags/index.xml 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 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 @@ + + + + Categories on My New Hugo Site + http://localhost:1313/categories/ + Recent content in Categories on My New Hugo Site + Hugo + en-us + + + 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 @@ + + + + My New Hugo Site + http://localhost:1313/ + Recent content on My New Hugo Site + Hugo + en-us + Thu, 11 Sep 2025 12:59:35 -0400 + + + My First Post + http://localhost:1313/posts/my-first-post/ + Thu, 11 Sep 2025 12:59:35 -0400 + http://localhost:1313/posts/my-first-post/ + + + + 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 @@ + + + + Posts on My New Hugo Site + http://localhost:1313/posts/ + Recent content in Posts on My New Hugo Site + Hugo + en-us + Thu, 11 Sep 2025 12:59:35 -0400 + + + My First Post + http://localhost:1313/posts/my-first-post/ + Thu, 11 Sep 2025 12:59:35 -0400 + http://localhost:1313/posts/my-first-post/ + + + + 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 @@ + + + + http://localhost:1313/posts/my-first-post/ + 2025-09-11T12:59:35-04:00 + + http://localhost:1313/ + 2025-09-11T12:59:35-04:00 + + http://localhost:1313/posts/ + 2025-09-11T12:59:35-04:00 + + http://localhost:1313/categories/ + + http://localhost:1313/tags/ + + 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 @@ + + + + Tags on My New Hugo Site + http://localhost:1313/tags/ + Recent content in Tags on My New Hugo Site + Hugo + en-us + + + -- cgit v1.2.3