From 0e798995468903917757b52ab9f31b04d5ab4880 Mon Sep 17 00:00:00 2001 From: mtgmonkey Date: Wed, 18 Jun 2025 16:17:36 -0400 Subject: [PATCH] init --- contact.html | 21 +++++++++++++++ daily/2025-06-07.html | 21 +++++++++++++++ flake.lock | 60 +++++++++++++++++++++++++++++++++++++++++++ flake.nix | 17 ++++++++++++ index.html | 33 ++++++++++++++++++++++++ package.nix | 28 ++++++++++++++++++++ styles.css | 19 ++++++++++++++ templates/base.html | 30 ++++++++++++++++++++++ 8 files changed, 229 insertions(+) create mode 100644 contact.html create mode 100644 daily/2025-06-07.html create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 index.html create mode 100644 package.nix create mode 100644 styles.css create mode 100644 templates/base.html diff --git a/contact.html b/contact.html new file mode 100644 index 0000000..3e63650 --- /dev/null +++ b/contact.html @@ -0,0 +1,21 @@ + + + + + Contact | Andromeda's Blog + + + +

+ Andromeda's blog | git | contact +

+ +

Contact

+ + + + + diff --git a/daily/2025-06-07.html b/daily/2025-06-07.html new file mode 100644 index 0000000..a8b1ba9 --- /dev/null +++ b/daily/2025-06-07.html @@ -0,0 +1,21 @@ + + + + + init post | 2025-06-07 | Andromeda's Blog + + + + +

Andromeda's blog | git | contact

+ +

init post

+ +

This is my first daily message, posted in the afternoon rather than the morning. In the future, all of these will be posted when I wake up.

+ +

Let's do some about me.

+ +

I use NixOS with limine, ly, xmonad, qutebrowser, and nvf on the day-to-day. I program in haskell, elm, nix, and rust. Functional programming for the win! My vps is also NixOS, and it's so convenient to share my home-manager config between the two!

+ + + diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..3531bbd --- /dev/null +++ b/flake.lock @@ -0,0 +1,60 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1750134718, + "narHash": "sha256-v263g4GbxXv87hMXMCpjkIxd/viIF7p3JpJrwgKdNiI=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "9e83b64f727c88a7711a2c463a7b16eedb69a84c", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-unstable", + "type": "indirect" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1749794982, + "narHash": "sha256-Kh9K4taXbVuaLC0IL+9HcfvxsSUx8dPB5s5weJcc9pc=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "ee930f9755f58096ac6e8ca94a1887e0534e2d81", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-unstable", + "type": "indirect" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "rust-http-server": "rust-http-server" + } + }, + "rust-http-server": { + "inputs": { + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1750103311, + "narHash": "sha256-aefZc/S5xu26OeNjUXA9whnAK9D7lWejqrqQ2xfPw+U=", + "ref": "refs/heads/master", + "rev": "02acb04f650b494de1dfb78474bf7e397e0f2995", + "revCount": 1, + "type": "git", + "url": "https://git.mtgmonkey.net/Andromeda/rust-http-server.git" + }, + "original": { + "type": "git", + "url": "https://git.mtgmonkey.net/Andromeda/rust-http-server.git" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..79608ff --- /dev/null +++ b/flake.nix @@ -0,0 +1,17 @@ +{ + inputs = { + nixpkgs.url = "nixpkgs/nixos-unstable"; + rust-http-server.url = "git+https://git.mtgmonkey.net/Andromeda/rust-http-server.git"; + }; + outputs = { + nixpkgs, + rust-http-server, + ... + }: let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in { + packages.${system}.default = pkgs.callPackage ./package.nix {inherit rust-http-server;}; + # nixosModules.${system}.default = ./module.nix; + }; +} diff --git a/index.html b/index.html new file mode 100644 index 0000000..01ffd98 --- /dev/null +++ b/index.html @@ -0,0 +1,33 @@ + + + + + Home | Andromeda's Blog + + + +

Andromeda's Blog

+ +

Welcome to my blog, written entirely in HTML and CSS - No Javascript in site! If you want some JS, try my hobby website.

+ +

Daily posts

+ +

I try to post every day, but I may sometimes forget. Check my git if you want to see what I'm up to in real time.

+ + + +

My Sites and Services

+ +

I host a variety of services - let me know if I should add more!

+ + + + diff --git a/package.nix b/package.nix new file mode 100644 index 0000000..e3a9009 --- /dev/null +++ b/package.nix @@ -0,0 +1,28 @@ +{ + lib, + stdenv, + rust-http-server, + ... +}: +stdenv.mkDerivation { + name = "best-blog"; + src = ./.; + nativeBuildInputs = []; + buildInputs = [rust-http-server.packages.x86_64-linux.default]; + configurePhase = ''''; + buildPhase = ''''; + installPhase = '' + mkdir -p $out/bin + cp -r ./* $out/ + echo "#!/usr/bin/env bash" > bestblog + echo "cd $(echo $out)/src/" >> bestblog + echo "${lib.getExe rust-http-server.packages.x86_64-linux.default} --port 9345" >> bestblog + chmod a+x bestblog + cp bestblog $out/bin/bestblog + ''; + meta = { + mainProgram = "bestblog"; + description = "bare minimum blog"; + homepage = "https://mtgmonkey.net"; + }; +} diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..ef71651 --- /dev/null +++ b/styles.css @@ -0,0 +1,19 @@ +body { + background-color: #380E36; + color: #F7E5F4; + line-height: 1.6; + font-size: 19px; + width: 750px; + margin: auto; + margin-top: 100px; +} +ul { + list-style-type: none; +} +a { + color: #5A77F2 +} +pre { + background-color: #5E1C56; + white-space: pre-wrap; +} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..0961f91 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,30 @@ + + + + + Template | Andromeda's Blog + + + +

+ Andromeda's blog | git | contact +

+ +

Template

+ +

This is a template page. Here is my hobby website.

+ +

My Sites and Services

+ +

I host a variety of services - let me know if I should add more!

+ + + + +