hand code posts

This commit is contained in:
wi11-holdsworth 2025-05-28 01:13:32 +10:00
parent dd014a106b
commit 15c5cf1a3e
56 changed files with 367 additions and 711 deletions

1
.gitignore vendored
View file

@ -1 +0,0 @@
tags/

1
CNAME
View file

@ -1 +0,0 @@
fi33.buzz

121
LICENSE
View file

@ -1,121 +0,0 @@
Creative Commons Legal Code
CC0 1.0 Universal
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
HEREUNDER.
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator
and subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for
the purpose of contributing to a commons of creative, cultural and
scientific works ("Commons") that the public can reliably and without fear
of later claims of infringement build upon, modify, incorporate in other
works, reuse and redistribute as freely as possible in any form whatsoever
and for any purposes, including without limitation commercial purposes.
These owners may contribute to the Commons to promote the ideal of a free
culture and the further production of creative, cultural and scientific
works, or to gain reputation or greater distribution for their Work in
part through the use and efforts of others.
For these and/or other purposes and motivations, and without any
expectation of additional consideration or compensation, the person
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
is an owner of Copyright and Related Rights in the Work, voluntarily
elects to apply CC0 to the Work and publicly distribute the Work under its
terms, with knowledge of his or her Copyright and Related Rights in the
Work and the meaning and intended legal effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not
limited to, the following:
i. the right to reproduce, adapt, distribute, perform, display,
communicate, and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or
likeness depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data
in a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation
thereof, including any amended or successor version of such
directive); and
vii. other similar, equivalent or corresponding rights throughout the
world based on applicable law or treaty, and any national
implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contravention
of, applicable law, Affirmer hereby overtly, fully, permanently,
irrevocably and unconditionally waives, abandons, and surrenders all of
Affirmer's Copyright and Related Rights and associated claims and causes
of action, whether now known or unknown (including existing as well as
future claims and causes of action), in the Work (i) in all territories
worldwide, (ii) for the maximum duration provided by applicable law or
treaty (including future time extensions), (iii) in any current or future
medium and for any number of copies, and (iv) for any purpose whatsoever,
including without limitation commercial, advertising or promotional
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
member of the public at large and to the detriment of Affirmer's heirs and
successors, fully intending that such Waiver shall not be subject to
revocation, rescission, cancellation, termination, or any other legal or
equitable action to disrupt the quiet enjoyment of the Work by the public
as contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reason
be judged legally invalid or ineffective under applicable law, then the
Waiver shall be preserved to the maximum extent permitted taking into
account Affirmer's express Statement of Purpose. In addition, to the
extent the Waiver is so judged Affirmer hereby grants to each affected
person a royalty-free, non transferable, non sublicensable, non exclusive,
irrevocable and unconditional license to exercise Affirmer's Copyright and
Related Rights in the Work (i) in all territories worldwide, (ii) for the
maximum duration provided by applicable law or treaty (including future
time extensions), (iii) in any current or future medium and for any number
of copies, and (iv) for any purpose whatsoever, including without
limitation commercial, advertising or promotional purposes (the
"License"). The License shall be deemed effective as of the date CC0 was
applied by Affirmer to the Work. Should any part of the License for any
reason be judged legally invalid or ineffective under applicable law, such
partial invalidity or ineffectiveness shall not invalidate the remainder
of the License, and in such case Affirmer hereby affirms that he or she
will not (i) exercise any of his or her remaining Copyright and Related
Rights in the Work or (ii) assert any associated claims and causes of
action with respect to the Work, in either case contrary to Affirmer's
express Statement of Purpose.
4. Limitations and Disclaimers.
a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or
warranties of any kind concerning the Work, express, implied,
statutory or otherwise, including without limitation warranties of
title, merchantability, fitness for a particular purpose, non
infringement, or the absence of latent or other defects, accuracy, or
the present or absence of errors, whether or not discoverable, all to
the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without
limitation any person's Copyright and Related Rights in the Work.
Further, Affirmer disclaims responsibility for obtaining any necessary
consents, permissions or other rights required for any use of the
Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to
this CC0 or use of the Work.

204
Makefile
View file

@ -1,204 +0,0 @@
#!/usr/bin/make -f
BLOG := $(MAKE) -f $(lastword $(MAKEFILE_LIST)) --no-print-directory
ifneq ($(filter-out help,$(MAKECMDGOALS)),)
include config
endif
# The following can be configured in config
BLOG_DATE_FORMAT_INDEX ?= %x
BLOG_DATE_FORMAT ?= %x %X
BLOG_TITLE ?= blog
BLOG_DESCRIPTION ?= blog
BLOG_URL_ROOT ?= http://localhost/blog
BLOG_FEED_MAX ?= 20
BLOG_FEEDS ?= rss atom
BLOG_SRC ?= articles
.PHONY: help init build deploy clean
ARTICLES = $(shell git ls-tree HEAD --name-only -- $(BLOG_SRC)/ 2>/dev/null)
TAGFILES = $(patsubst $(BLOG_SRC)/%.md,tags/%,$(ARTICLES))
help:
$(info blogit init|build|deploy|clean)
init:
mkdir -p $(BLOG_SRC) data templates
printf '<!DOCTYPE html><html><head><title>$$TITLE</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:verdana;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body>' > templates/header.html
printf '</body></html>' > templates/footer.html
printf '<header><h1>will holdsworth'\''s blog</h1><nav></nav></header><body>' > templates/index_header.html
printf '<p>tags: ' > templates/tag_list_header.html
printf '<a href="$$URL">#$$NAME</a>' > templates/tag_entry.html
printf ', ' > templates/tag_separator.html
printf '</p>' > templates/tag_list_footer.html
printf '<h2>posts</h2><ul>' > templates/article_list_header.html
printf '<li>$$DATE - <a href="$$URL">$$TITLE</a></li>' > templates/article_entry.html
printf '' > templates/article_separator.html
printf '</ul>' > templates/article_list_footer.html
printf '<p><br></p></body><footer><hr>feeds: <a href="atom.xml">atom</a>, <a href="rss.xml">rss</a></footer>' > templates/index_footer.html
printf '<header><h1>#$$TAGS</h1><nav><a href="index.html">← all posts</a></header></nav><body>' > templates/tag_index_header.html
printf '</body>' > templates/tag_index_footer.html
printf '<header><h1>will holdsworth'\''s blog</h1><nav><a href="index.html">← all posts</a></nav></header><body><h2>$$TITLE</h2><p><i>posted: $$DATE_POSTED<br>edited: $$DATE_EDITED</i></p>' > templates/article_header.html
printf '<p><br></p></body><footer><hr>tags: $$TAGS</footer>' > templates/article_footer.html
printf 'blog\n' > .git/info/exclude
build: blog/index.html tagpages $(patsubst $(BLOG_SRC)/%.md,blog/%.html,$(ARTICLES)) $(patsubst %,blog/%.xml,$(BLOG_FEEDS))
deploy: build
rsync -rLtvz $(BLOG_RSYNC_OPTS) blog/ data/ $(BLOG_REMOTE)
clean:
rm -rf blog tags
config:
printf 'BLOG_REMOTE:=%s\n' \
'$(shell printf "Blog remote (eg: host:/var/www/html): ">/dev/tty; head -n1)' \
> $@
tags/%: $(BLOG_SRC)/%.md
mkdir -p tags
grep -i '^; *tags:' "$<" | cut -d: -f2- | sed 's/ */\n/g' | sed '/^$$/d' | sort -u > $@
blog/index.html: $(ARTICLES) $(TAGFILES) $(addprefix templates/,$(addsuffix .html,header index_header tag_list_header tag_entry tag_separator tag_list_footer article_list_header article_entry article_separator article_list_footer index_footer footer))
mkdir -p blog
TITLE="$(BLOG_TITLE)"; \
export TITLE; \
envsubst < templates/header.html > $@; \
envsubst < templates/index_header.html >> $@; \
envsubst < templates/tag_list_header.html >> $@; \
first=true; \
for t in $(shell cat $(TAGFILES) | sort -u); do \
"$$first" || envsubst < templates/tag_separator.html; \
NAME="$$t" \
URL="@$$t.html" \
envsubst < templates/tag_entry.html; \
first=false; \
done >> $@; \
envsubst < templates/tag_list_footer.html >> $@; \
envsubst < templates/article_list_header.html >> $@; \
first=true; \
for f in $(ARTICLES); do \
printf '%s ' "$$f"; \
git log --diff-filter=A --date="format:%s $(BLOG_DATE_FORMAT_INDEX)" --pretty=format:'%ad%n' -- "$$f"; \
done | sort -k2nr | cut -d" " -f1,3- | while IFS=" " read -r FILE DATE; do \
"$$first" || envsubst < templates/article_separator.html; \
URL="`printf '%s' "\$$FILE" | sed 's,^$(BLOG_SRC)/\(.*\).md,\1,'`.html" \
DATE="$$DATE" \
TITLE="`head -n1 "\$$FILE" | sed -e 's/^# //g'`" \
envsubst < templates/article_entry.html; \
first=false; \
done >> $@; \
envsubst < templates/article_list_footer.html >> $@; \
envsubst < templates/index_footer.html >> $@; \
envsubst < templates/footer.html >> $@; \
blog/tag/%.html: $(ARTICLES) $(addprefix templates/,$(addsuffix .html,header tag_header index_entry tag_footer footer))
.PHONY: tagpages
tagpages: $(TAGFILES)
+$(BLOG) $(patsubst %,blog/@%.html,$(shell cat $(TAGFILES) | sort -u))
blog/@%.html: $(TAGFILES) $(addprefix templates/,$(addsuffix .html,header tag_index_header tag_list_header tag_entry tag_separator tag_list_footer article_list_header article_entry article_separator article_list_footer tag_index_footer footer))
mkdir -p blog
TITLE="Articles tagged $*"; \
TAGS="$*"; \
export TITLE; \
export TAGS; \
envsubst < templates/header.html > $@; \
envsubst < templates/tag_index_header.html >> $@; \
envsubst < templates/article_list_header.html >> $@; \
first=true; \
for f in $(shell grep -FH '$*' $(TAGFILES) | sed 's,^tags/\([^:]*\):.*,$(BLOG_SRC)/\1.md,'); do \
printf '%s ' "$$f"; \
git log --diff-filter=A --date="format:%s $(BLOG_DATE_FORMAT_INDEX)" --pretty=format:'%ad%n' -- "$$f"; \
done | sort -k2nr | cut -d" " -f1,3- | while IFS=" " read -r FILE DATE; do \
"$$first" || envsubst < templates/article_separator.html; \
URL="`printf '%s' "\$$FILE" | sed 's,^$(BLOG_SRC)/\(.*\).md,\1,'`.html" \
DATE="$$DATE" \
TITLE="`head -n1 "\$$FILE" | sed -e 's/^# //g'`" \
envsubst < templates/article_entry.html; \
first=false; \
done >> $@; \
envsubst < templates/article_list_footer.html >> $@; \
envsubst < templates/tag_index_footer.html >> $@; \
envsubst < templates/footer.html >> $@; \
blog/%.html: $(BLOG_SRC)/%.md $(addprefix templates/,$(addsuffix .html,header article_header article_footer footer))
mkdir -p blog
TITLE="$(shell head -n1 $<)"; \
export TITLE; \
AUTHOR="$(shell git log -n 1 --reverse --format="%cn" -- "$<")"; \
export AUTHOR; \
DATE_POSTED="$(shell git log --diff-filter=A --date="format:$(BLOG_DATE_FORMAT)" --pretty=format:'%ad' -- "$<")"; \
export DATE_POSTED; \
DATE_EDITED="$(shell git log -n 1 --date="format:$(BLOG_DATE_FORMAT)" --pretty=format:'%ad' -- "$<")"; \
export DATE_EDITED; \
TAGS="$(shell grep -i '^; *tags:' "$<" | cut -d: -f2- | paste -sd ',')"; \
export TAGS; \
envsubst < templates/header.html > $@; \
envsubst < templates/article_header.html >> $@; \
sed -e 1d \
-e '/^;/d' \
-e 's/&/\&amp;/g' \
-e 's/</\&lt;/g' \
-e 's/>/\&gt;/g' \
-e '/^```$$/{s,.*,,;x;p;/^<\/code>/d;s,.*,<pre><code>,;bT}' \
-e 'x;/<\/code>/{x;s,\$$,\&#36;,g;$$G;p;d};x' \
-e 's,\\\$$,\&#36;,g' \
-e '/^####/{s,^####,<h4>,;s,$$,</h4>,;H;s,.*,,;x;p;d}' \
-e '/^###/{s,^###,<h3>,;s,$$,</h3>,;H;s,.*,,;x;p;d}' \
-e '/^##/{s,^##,<h2>,;s,$$,</h2>,;H;s,.*,,;x;p;d}' \
-e '/^#/{s,^#,<h1>,;s,$$,</h1>,;H;s,.*,,;x;p;d}' \
-e 's,`\([^`]*\)`,<code>\1</code>,g' \
-e 's,\*\*\(\([^*<>][^*<>]*\*\?\)*\)\*\*,<b>\1</b>,g' \
-e 's,\*\([^*<>][^*<>]*\)\*,<i>\1</i>,g' \
-e 's,!\[\([^]]*\)\](\([^)]*\)),<img src="\2" alt="\1"/>,g' \
-e 's,\[\([^]]*\)\](\([^)]*\)),<a href="\2">\1</a>,g' \
-e '/^- /{s,^- ,<li>,;s,$$,</li>,;x;/^<\/ul>/{x;bL};p;s,.*,<ul>,;bT}' \
-e '/^[1-9][0-9]*\. /{s,^[0-9]*\. ,<li>,;s,$$,</li>,;x;/^<\/ol>/{x;bL};p;s,.*,<ol>,;bT}' \
-e '/^$$/{x;/^$$/d;p;d}' \
-e 'x;/^$$/{s,.*,<p>,;bT};x' \
-e ':L;$$G;p;d' \
-e ':T;p;:t;s,<\([^/>][^>]*\)>\(\(<[^/>][^>]*>\)*\),\2</\1>,;/<[^\/>]/bt;x;/^$$/{$${x;p};d};bL' \
"$<" | envsubst >> $@; \
envsubst < templates/article_footer.html >> $@; \
envsubst < templates/footer.html >> $@; \
blog/rss.xml: $(ARTICLES)
printf '<?xml version="1.0" encoding="UTF-8"?>\n<rss version="2.0">\n<channel>\n<title>%s</title>\n<link>%s</link>\n<description>%s</description>\n' \
"$(BLOG_TITLE)" "$(BLOG_URL_ROOT)" "$(BLOG_DESCRIPTION)" > $@
for f in $(ARTICLES); do \
printf '%s ' "$$f"; \
git log --diff-filter=A --date="format:%s %a, %d %b %Y %H:%M:%S %z" --pretty=format:'%ad%n' -- "$$f"; \
done | sort -k2nr | head -n $(BLOG_FEED_MAX) | cut -d" " -f1,3- | while IFS=" " read -r FILE DATE; do \
printf '<item>\n<title>%s</title>\n<link>%s</link>\n<guid>%s</guid>\n<pubDate>%s</pubDate>\n<description>%s</description>\n</item>\n' \
"`head -n 1 $$FILE`" \
"$(BLOG_URL_ROOT)/`basename $$FILE .md`.html" \
"$(BLOG_URL_ROOT)/`basename $$FILE .md`.html" \
"$$DATE" \
"`sed -n '1d;/^$$/{2{d;b};q};p' < $$FILE`"; \
done >> $@
printf '</channel>\n</rss>\n' >> $@
blog/atom.xml: $(ARTICLES)
printf '<?xml version="1.0" encoding="UTF-8"?>\n<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">\n<title type="text">%s</title>\n<subtitle type="text">%s</subtitle>\n<updated>%s</updated>\n<link rel="alternate" type="text/html" href="%s"/>\n<id>%s</id>\n<link rel="self" type="application/atom+xml" href="%s"/>\n' \
"$(BLOG_TITLE)" "$(BLOG_DESCRIPTION)" "$(shell date +%Y-%m-%dT%H:%M:%SZ)" "$(BLOG_URL_ROOT)" "$(BLOG_URL_ROOT)/atom.xml" "$(BLOG_URL_ROOT)/atom.xml" > $@
for f in $(ARTICLES); do \
printf '%s ' "$$f"; \
git log --diff-filter=A --date="format:%s %Y-%m-%dT%H:%M:%SZ" --pretty=format:'%ad %aN%n' -- "$$f"; \
done | sort -k2nr | head -n $(BLOG_FEED_MAX) | cut -d" " -f1,3- | while IFS=" " read -r FILE DATE AUTHOR; do \
printf '<entry>\n<title type="text">%s</title>\n<link rel="alternate" type="text/html" href="%s"/>\n<id>%s</id>\n<published>%s</published>\n<updated>%s</updated>\n<author><name>%s</name></author>\n<summary type="text">%s</summary>\n</entry>\n' \
"`head -n 1 $$FILE`" \
"$(BLOG_URL_ROOT)/`basename $$FILE .md`.html" \
"$(BLOG_URL_ROOT)/`basename $$FILE .md`.html" \
"$$DATE" \
"`git log -n 1 --date="format:%Y-%m-%dT%H:%M:%SZ" --pretty=format:'%ad' -- "$$FILE"`" \
"$$AUTHOR" \
"`sed -n '1d;/^$$/{2{d;b};q};p' < $$FILE`"; \
done >> $@
printf '</feed>\n' >> $@

View file

@ -1 +0,0 @@
my personal fork of [blogit](https://pedantic.software/git/blogit)

37
about.html Normal file
View file

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/style.css">
<title>Document</title>
</head>
<body>
<header>
<h1>Will Holdsworth</h1>
<hr>
<nav>
<a href="/index.html">Home</a>
|
<a href="/projects/index.html">Projects</a>
|
<a href="/blog/index.html">Blog</a>
| About |
<a href="/contact.html">Contact</a>
</nav>
<hr>
</header>
<main>
<h2>Summary</h2>
<p>I am a Kiwi living in Australia and studying a Bachelor of Science at The
University of Melbourne.</p>
</main>
<footer>
<hr>
Copyright (C) 2025 Will Holdsworth under MPLv2
</footer>
</body>
</html>

View file

@ -1,80 +0,0 @@
quick and easy cloud storage with dufs and nixos
dufs[1] -- the distinctive file utility server -- is a decent cloud storage replacement for those looking to move away from third-party services like google drive or proton drive. it supports webdav and https file transfer protocols.
it's very easy to set up and get going in nixos using a docker container.
## set up dufs
first, enable docker in your `configuration.nix`:
```
virtualisation.docker.enable = true;
```
then define a docker container, either in your `configuration.nix` or in a custom module:
```
virtualisation.oci-containers = {
backend = "docker";
containers.dufs = {
# automatically restart server after reboot
autoStart = true;
image = "sigoden/dufs";
ports = [
"5000:5000"
];
# the files i want to serve are in /srv/dufs
volumes = [
"/srv/dufs:/data"
];
# tells dufs to serve the files in the docker volume /data
cmd = [
"-A"
"/data"
];
};
};
```
rebuild your configuration using `nixos-rebuild switch` and head on over to `http://localhost:5000` to behold your lovely files.
## set up tailscale
you can use tailscale[2] to access the files on other devices inside (and outside) of your home network. tailscale is like a crazy-fast vpn with a bunch of other comfort features like magic dns[3], keyless ssh[4] and easy https[5].
to enable it in nixos, add the following to your `configuration.nix`:
```
services.tailscale.enable = true;
networking.firewall.trustedInterfaces = [ "tailscale0" ];
```
once again, rebuild your configuration using `nixos-rebuild switch` and run `tailscale up` to start tailscale.
i recommend enabling magic dns in admin console > dns > magic dns, but if you prefer not to, your server's ip address will be visible by running `tailscale ip -4`.
head over to `http://<hostname or ip>:5000` on one of your other machines running tailscale to upload, download, and view your self-hosted files.
## dufs clients
as for client recommendations, round sync[6] on android is quite good. it supports both webdav and https remotes, i chose to use webdav when connecting.
thanks for stopping by ^.^
[1] [dufs](https://github.com/sigoden/dufs)
[2] [tailscale](https://tailscale.com/)
[3] [magic dns](https://tailscale.com/kb/1081/magicdns)
[4] [tailscale ssh](https://tailscale.com/kb/1193/tailscale-ssh)
[5] [tailscale https](https://tailscale.com/kb/1153/enabling-https)
[6] [round sync](https://github.com/newhinton/Round-Sync)
;tags: self-hosting cloud-storage nixos tailscale

View file

@ -1,18 +0,0 @@
welcome!
the static site generator i'm using to kickstart this blog[1] requires a single post to exist in order to compile, and failing to provide a post sends `make` into an infinite loop.
so without further ado... here it is, my first post!
topics to expect once i get myself more organised:
- basic tutorials on setting up self-hosted nixos web services
- lazy hardware reviews
- software shenanigans
- anything else i feel is relevant and useful to the wider web
thanks for stopping by ^.^
[1] [blogit](https://pedantic.software/git/blogit)
;tags:

View file

@ -0,0 +1,154 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/style.css">
<title>Document</title>
</head>
<body>
<header>
<h1>Will Holdsworth</h1>
<hr>
<nav>
<a href="/index.html">Home</a>
|
<a href="/projects/index.html">Projects</a>
|
<a href="/blog/index.html">Blog</a>
|
<a href="/about.html">About</a>
|
<a href="/contact.html">Contact</a>
</nav>
<hr>
</header>
<main>
<h1>Quick & easy cloud storage with dufs and NixOS</h1>
<p>
dufs<sup><a id="footnote-1-ref" href="#footnote-1" title="link to footnote">1</a></sup> (the distinctive file
utility server) is a cloud storage replacement for those looking to move away from third-party services like
Google Drive or Proton Drive. it supports WebDAV and HTTPS file transfer protocols.
</p>
<p>It's very easy to set up and get going in NixOS using a Docker container.</p>
<h2>Set up dufs</h2>
<p>First, enable docker in your <code>configuration.nix</code>:</p>
<pre>
<code>
virtualisation.docker.enable = true;
</code>
</pre>
Then define a Docker container, either in your <code>configuration.nix</code> or in a custom module:
<pre>
<code>
virtualisation.oci-containers = {
backend = "docker";
containers.dufs = {
# automatically restart server after reboot
autoStart = true;
image = "sigoden/dufs";
ports = [
"5000:5000"
];
# the files i want to serve are in /srv/dufs
volumes = [
"/srv/dufs:/data"
];
# tells dufs to serve the files in the docker volume /data
cmd = [
"-A"
"/data"
];
};
};
</code>
</pre>
Rebuild your configuration by running <code>sudo nixos-rebuild switch</code> and head on over to
<code>http://localhost:5000</code> to behold your lovely files. Now we need a method to access our files on other
devices inside (and outside) of our home network. Tailscale<sup><a id="footnote-2-ref" href="#footnote-2"
title="link to footnote">2</a></sup> provides commands to accomplish this easily.
<h2>Set up Tailscale</h2>
<p>
You can use Tailscale to access the files on other devices inside (and outside) of your home network. Tailscale is
like a crazy-fast vpn with a bunch of other comfort features like MagicDNS<sup><a id="footnote-3-ref"
href="#footnote-3" title="link to footnote">3</a></sup>, keyless SSH<sup><a id="footnote-4-ref"
href="#footnote-4" title="link to footnote">4</a></sup> and
easy HTTPS<sup><a id="footnote-5-ref" href="#footnote-5" title="link to footnote">5</a></sup>.
</p>
<p>To enable it in nixos, add the following to your <code>configuration.nix</code>:</p>
<pre>
<code>
services.tailscale.enable = true;
networking.firewall.trustedInterfaces = [ "tailscale0" ];
</code>
</pre>
<p>
Once again, rebuild your configuration by running <code>sudo nixos-rebuild switch</code> and run
<code>tailscale up</code> to start tailscale. The tailscale connection will persist on reboot, so no need to worry
about adding it to your init process.
</p>
<p>
I recommend enabling MagicDNS in the admin console > DNS > MagicDNS, but if you prefer not to, your server's IP
address will be visible by running <code>tailscale ip -4</code>.
</p>
<p>
Head over to <code>http://&lt;hostname or ip&gt;:5000</code> on one of your other machines running tailscale to
upload,
download, and view your self-hosted files.
</p>
<h2>dufs clients</h2>
<p>
As for client recommendations, Round Sync<sup><a id="footnote-6-ref" href="#footnote-6"
title="link to footnote">6</a></sup> on android is quite good. it supports both WebDAV and HTTPS remotes, I
chose to use WebDAV when connecting.
</p>
<br>
<p>Thanks for stopping by ^.^</p>
<h2>Footnotes</h2>
<ol>
<li id="footnote-1">
<a href="https://github.com/sigoden/dufs">dufs</a>
<a href="#footnote-1-ref" title="return to text">&#8617;</a>
</li>
<li id="footnote-2">
<a href="https://tailscale.com/">Tailscale</a>
<a href="#footnote-2-ref" title="return to text">&#8617;</a>
</li>
<li id="footnote-3">
<a href="https://tailscale.com/kb/1081/magicdns">MagicDNS</a>
<a href="#footnote-3-ref" title="return to text">&#8617;</a>
</li>
<li id="footnote-4">
<a href="https://tailscale.com/kb/1193/tailscale-ssh">Tailscale SSH</a>
<a href="#footnote-4-ref" title="return to text">&#8617;</a>
</li>
<li id="footnote-5">
<a href="https://tailscale.com/kb/1153/enabling-https">Tailscale HTTPS</a>
<a href="#footnote-5-ref" title="return to text">&#8617;</a>
</li>
<li id="footnote-6">
<a href="https://github.com/newhinton/Round-Sync">Round Sync</a>
<a href="#footnote-6-ref" title="return to text">&#8617;</a>
</li>
</ol>
</main>
<footer>
<hr>
Copyright (C) 2025 Will Holdsworth under MPLv2
</footer>
</body>
</html>

View file

@ -1 +0,0 @@
<!DOCTYPE html><html><head><title>Articles tagged all</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:verdana;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body><header><h1>#all</h1><nav><a href="index.html">← all posts</a></header></nav><body><h2>posts</h2><ul><li>2025/01/28 - <a href="dufs.html">quick and easy cloud storage with dufs and nixos</a></li><li>2025/01/27 - <a href="welcome.html">welcome!</a></li></ul></body></body></html>

View file

@ -1 +0,0 @@
<!DOCTYPE html><html><head><title>Articles tagged cloud-storage</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:verdana;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body><header><h1>#cloud-storage</h1><nav><a href="index.html">← all posts</a></header></nav><body><h2>posts</h2><ul><li>2025/01/28 - <a href="dufs.html">quick and easy cloud storage with dufs and nixos</a></li></ul></body></body></html>

View file

@ -1 +0,0 @@
<!DOCTYPE html><html><head><title>Articles tagged cloud</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:monospace;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body><header><h1>#cloud</h1><nav><a href="index.html">← all posts</a></header></nav><body><h2>posts</h2><ul><li>2025/01/28 - <a href="dufs.html">quick and easy cloud storage with dufs and nixos</a></li></ul></body></body></html>

View file

@ -1 +0,0 @@
<!DOCTYPE html><html><head><title>Articles tagged hosting,</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:monospace;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body><header><h1>#hosting,</h1><nav><a href="index.html">← all posts</a></header></nav><body><h2>posts</h2><ul><li>2025/01/28 - <a href="dufs.html">quick and easy cloud storage with dufs and nixos</a></li></ul></body></body></html>

View file

@ -1 +0,0 @@
<!DOCTYPE html><html><head><title>Articles tagged nixos,</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:monospace;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body><header><h1>#nixos,</h1><nav><a href="index.html">← all posts</a></header></nav><body><h2>posts</h2><ul><li>2025/01/28 - <a href="dufs.html">quick and easy cloud storage with dufs and nixos</a></li></ul></body></body></html>

View file

@ -1 +0,0 @@
<!DOCTYPE html><html><head><title>Articles tagged nixos</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:verdana;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body><header><h1>#nixos</h1><nav><a href="index.html">← all posts</a></header></nav><body><h2>posts</h2><ul><li>2025/01/28 - <a href="dufs.html">quick and easy cloud storage with dufs and nixos</a></li></ul></body></body></html>

View file

@ -1 +0,0 @@
<!DOCTYPE html><html><head><title>Articles tagged self-hosting</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:verdana;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body><header><h1>#self-hosting</h1><nav><a href="index.html">← all posts</a></header></nav><body><h2>posts</h2><ul><li>2025/01/28 - <a href="dufs.html">quick and easy cloud storage with dufs and nixos</a></li></ul></body></body></html>

View file

@ -1 +0,0 @@
<!DOCTYPE html><html><head><title>Articles tagged self</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:monospace;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body><header><h1>#self</h1><nav><a href="index.html">← all posts</a></header></nav><body><h2>posts</h2><ul><li>2025/01/28 - <a href="dufs.html">quick and easy cloud storage with dufs and nixos</a></li></ul></body></body></html>

View file

@ -1 +0,0 @@
<!DOCTYPE html><html><head><title>Articles tagged storage,</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:monospace;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body><header><h1>#storage,</h1><nav><a href="index.html">← all posts</a></header></nav><body><h2>posts</h2><ul><li>2025/01/28 - <a href="dufs.html">quick and easy cloud storage with dufs and nixos</a></li></ul></body></body></html>

View file

@ -1 +0,0 @@
<!DOCTYPE html><html><head><title>Articles tagged tailscale</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:verdana;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body><header><h1>#tailscale</h1><nav><a href="index.html">← all posts</a></header></nav><body><h2>posts</h2><ul><li>2025/01/28 - <a href="dufs.html">quick and easy cloud storage with dufs and nixos</a></li></ul></body></body></html>

View file

@ -1,27 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title type="text">will holdsworth's blog</title>
<subtitle type="text">blog</subtitle>
<updated>2025-01-28T19:06:19Z</updated>
<link rel="alternate" type="text/html" href="https://fi33.buzz"/>
<id>https://fi33.buzz/atom.xml</id>
<link rel="self" type="application/atom+xml" href="https://fi33.buzz/atom.xml"/>
<entry>
<title type="text">quick and easy cloud storage with dufs and nixos</title>
<link rel="alternate" type="text/html" href="https://fi33.buzz/dufs.html"/>
<id>https://fi33.buzz/dufs.html</id>
<published>2025-01-28T18:41:39Z</published>
<updated>2025-01-28T19:05:53Z</updated>
<author><name>wi11-holdsworth</name></author>
<summary type="text">dufs[1] -- the distinctive file utility server -- is a decent cloud storage replacement for those looking to move away from third-party services like google drive or proton drive. it supports webdav and https file transfer protocols.</summary>
</entry>
<entry>
<title type="text">welcome!</title>
<link rel="alternate" type="text/html" href="https://fi33.buzz/welcome.html"/>
<id>https://fi33.buzz/welcome.html</id>
<published>2025-01-27T22:16:57Z</published>
<updated>2025-01-27T23:11:05Z</updated>
<author><name>wi11-holdsworth</name></author>
<summary type="text">the static site generator i'm using to kickstart this blog[1] requires a single post to exist in order to compile, and failing to provide a post sends `make` into an infinite loop.</summary>
</entry>
</feed>

View file

@ -1,95 +0,0 @@
<!DOCTYPE html><html><head><title>quick and easy cloud storage with dufs and nixos</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:verdana;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body><header><h1>will holdsworth's blog</h1><nav><a href="index.html">← all posts</a></nav></header><body><h2>quick and easy cloud storage with dufs and nixos</h2><p><i>posted: 2025/01/28 18:41<br>edited: 2025/01/28 19:06</i></p><p>
dufs[1] -- the distinctive file utility server -- is a decent cloud storage replacement for those looking to move away from third-party services like google drive or proton drive. it supports webdav and https file transfer protocols.
</p>
<p>
it's very easy to set up and get going in nixos using a docker container.
</p>
<h2> set up dufs </h2>
<p>
first, enable docker in your <code>configuration.nix</code>:
</p>
<pre><code>
virtualisation.docker.enable = true;
</code></pre>
<p>
then define a docker container, either in your <code>configuration.nix</code> or in a custom module:
</p>
<pre><code>
virtualisation.oci-containers = {
backend = "docker";
containers.dufs = {
# automatically restart server after reboot
autoStart = true;
image = "sigoden/dufs";
ports = [
"5000:5000"
];
# the files i want to serve are in /srv/dufs
volumes = [
"/srv/dufs:/data"
];
# tells dufs to serve the files in the docker volume /data
cmd = [
"-A"
"/data"
];
};
};
</code></pre>
<p>
rebuild your configuration using <code>nixos-rebuild switch</code> and head on over to <code>http://localhost:5000</code> to behold your lovely files.
</p>
<h2> set up tailscale</h2>
<p>
you can use tailscale[2] to access the files on other devices inside (and outside) of your home network. tailscale is like a crazy-fast vpn with a bunch of other comfort features like magic dns[3], keyless ssh[4] and easy https[5].
</p>
<p>
to enable it in nixos, add the following to your <code>configuration.nix</code>:
</p>
<pre><code>
services.tailscale.enable = true;
networking.firewall.trustedInterfaces = [ "tailscale0" ];
</code></pre>
<p>
once again, rebuild your configuration using <code>nixos-rebuild switch</code> and run <code>tailscale up</code> to start tailscale.
</p>
<p>
i recommend enabling magic dns in admin console &gt; dns &gt; magic dns, but if you prefer not to, your server's ip address will be visible by running <code>tailscale ip -4</code>.
</p>
<p>
head over to <code>http://&lt;hostname or ip&gt;:5000</code> on one of your other machines running tailscale to upload, download, and view your self-hosted files.
</p>
<h2> dufs clients</h2>
<p>
as for client recommendations, round sync[6] on android is quite good. it supports both webdav and https remotes, i chose to use webdav when connecting.
</p>
<p>
thanks for stopping by ^.^
</p>
<p>
[1] <a href="https://github.com/sigoden/dufs">dufs</a>
</p>
<p>
[2] <a href="https://tailscale.com/">tailscale</a>
</p>
<p>
[3] <a href="https://tailscale.com/kb/1081/magicdns">magic dns</a>
</p>
<p>
[4] <a href="https://tailscale.com/kb/1193/tailscale-ssh">tailscale ssh</a>
</p>
<p>
[5] <a href="https://tailscale.com/kb/1153/enabling-https">tailscale https</a>
</p>
<p>
[6] <a href="https://github.com/newhinton/Round-Sync">round sync</a>
</p>
<p><br></p></body><footer><hr>tags: self-hosting cloud-storage nixos tailscale</footer></body></html>

View file

@ -1 +1,40 @@
<!DOCTYPE html><html><head><title>will holdsworth's blog</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:verdana;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body><header><h1>will holdsworth's blog</h1><nav></nav></header><body><p>tags: <a href="@cloud-storage.html">#cloud-storage</a>, <a href="@nixos.html">#nixos</a>, <a href="@self-hosting.html">#self-hosting</a>, <a href="@tailscale.html">#tailscale</a></p><h2>posts</h2><ul><li>2025/01/28 - <a href="dufs.html">quick and easy cloud storage with dufs and nixos</a></li><li>2025/01/27 - <a href="welcome.html">welcome!</a></li></ul><p><br></p></body><footer><hr>feeds: <a href="atom.xml">atom</a>, <a href="rss.xml">rss</a></footer></body></html> <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/style.css">
<title>Document</title>
</head>
<body>
<header>
<h1>Will Holdsworth</h1>
<hr>
<nav>
<a href="/index.html">Home</a>
|
<a href="/projects/index.html">Projects</a>
| Blog |
<a href="/about.html">About</a>
|
<a href="/contact.html">Contact</a>
</nav>
<hr>
</header>
<main>
<h2>Posts</h2>
<ul>
<li>2025-01-28 | <a href="/blog/2025/01/28-leveraging-nixos-dufs-cloud-storage.html">Quick and easy cloud storage
with dufs and NixOS
</a></li>
</ul>
</main>
<footer>
<hr>
Copyright (C) 2025 Will Holdsworth under MPLv2
</footer>
</body>
</html>

View file

@ -1,22 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>will holdsworth's blog</title>
<link>https://fi33.buzz</link>
<description>blog</description>
<item>
<title>quick and easy cloud storage with dufs and nixos</title>
<link>https://fi33.buzz/dufs.html</link>
<guid>https://fi33.buzz/dufs.html</guid>
<pubDate>Tue, 28 Jan 2025 18:41:39 +1100</pubDate>
<description>dufs[1] -- the distinctive file utility server -- is a decent cloud storage replacement for those looking to move away from third-party services like google drive or proton drive. it supports webdav and https file transfer protocols.</description>
</item>
<item>
<title>welcome!</title>
<link>https://fi33.buzz/welcome.html</link>
<guid>https://fi33.buzz/welcome.html</guid>
<pubDate>Mon, 27 Jan 2025 22:16:57 +1100</pubDate>
<description>the static site generator i'm using to kickstart this blog[1] requires a single post to exist in order to compile, and failing to provide a post sends `make` into an infinite loop.</description>
</item>
</channel>
</rss>

View file

@ -1,23 +0,0 @@
<!DOCTYPE html><html><head><title>welcome!</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:verdana;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body><header><h1>will holdsworth's blog</h1><nav><a href="index.html">← all posts</a></nav></header><body><h2>welcome!</h2><p><i>posted: 2025/01/27 22:16<br>edited: 2025/01/28 19:06</i></p><p>
the static site generator i'm using to kickstart this blog[1] requires a single post to exist in order to compile, and failing to provide a post sends <code>make</code> into an infinite loop.
</p>
<p>
so without further ado... here it is, my first post!
</p>
<p>
topics to expect once i get myself more organised:
</p>
<ul>
<li>basic tutorials on setting up self-hosted nixos web services</li>
<li>lazy hardware reviews</li>
<li>software shenanigans</li>
<li>anything else i feel is relevant and useful to the wider web</li>
</ul>
<p>
thanks for stopping by ^.^
</p>
<p>
[1] <a href="https://pedantic.software/git/blogit">blogit</a>
</p>
<p><br></p></body><footer><hr>tags: </footer></body></html>

7
config
View file

@ -1,7 +0,0 @@
BLOG_REMOTE:=opal:/srv/fi33buzz
BLOG_DATE_FORMAT:=%Y/%m/%d %H:%M
BLOG_DATE_FORMAT_INDEX:=%Y/%m/%d
BLOG_TITLE:=will holdsworth's blog
BLOG_URL_ROOT:=https://fi33.buzz
BLOG_FEED_MAX:=20
BLOG_FEEDS:=rss atom

42
contact.html Normal file
View file

@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/style.css">
<title>Document</title>
</head>
<body>
<header>
<h1>Will Holdsworth</h1>
<hr>
<nav>
<a href="/index.html">Home</a>
|
<a href="/projects/index.html">Projects</a>
|
<a href="/blog/index.html">Blog</a>
|
<a href="/about.html">About</a>
| Contact
</nav>
<hr>
</header>
<main>
<h2>Email Address</h2>
<p>This forwarding address is provided by <a href="https://duckduckgo.com/email/">DuckDuckGo</a> and is periodically
regenerated to reduce spam.</p>
<a href="mailto:canyon-scary-tutu@duck.com">canyon-scary-tutu@duck.com</a>
<h2>Social Media</h2>
<p>I currently use social media exclusively among close friends. If this ever changes, I will add some links.
</p>
</main>
<footer>
<hr>
Copyright (C) 2025 Will Holdsworth under MPLv2
</footer>
</body>
</html>

57
flake.lock generated
View file

@ -1,57 +0,0 @@
{
"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": 0,
"narHash": "sha256-nmKOgAU48S41dTPIXAq0AHZSehWUn6ZPrUKijHAMmIk=",
"path": "/nix/store/irknf7niks2djxz4csh7sr44wwrs082y-source",
"type": "path"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"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
}

View file

@ -1,16 +0,0 @@
{
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = {
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
devShells.default = import ./shell.nix { inherit pkgs; };
}
);
}

36
index.html Normal file
View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/style.css">
<title>Document</title>
</head>
<body>
<header>
<h1>Will Holdsworth</h1>
<hr>
<nav>
Home |
<a href="projects/index.html">Projects</a>
|
<a href="blog/index.html">Blog</a>
|
<a href="about.html">About</a>
|
<a href="contact.html">Contact</a>
</nav>
<hr>
</header>
<main>
<p>🚧 Page under construction 🚧</p>
</main>
<footer>
<hr>
Copyright (C) 2025 Will Holdsworth under MPLv2
</footer>
</body>
</html>

35
projects/index.html Normal file
View file

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/style.css">
<title>Document</title>
</head>
<body>
<header>
<h1>Will Holdsworth</h1>
<hr>
<nav>
<a href="/index.html">Home</a>
| Projects |
<a href="/blog/index.html">Blog</a>
|
<a href="/about.html">About</a>
|
<a href="/contact.html">Contact</a>
</nav>
<hr>
</header>
<main>
<p>🚧 Page under construction 🚧</p>
</main>
<footer>
<hr>
Copyright (C) 2025 Will Holdsworth under MPLv2
</footer>
</body>
</html>

BIN
public/img/HAND_CODED.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
public/img/anybrowser.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

BIN
public/img/js.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
public/img/kendrick.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
public/img/nocookie.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 B

View file

@ -1,8 +0,0 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages; [
gnumake
envsubst
python312Packages.mat2
];
}

23
style.css Normal file
View file

@ -0,0 +1,23 @@
html {
background-color: #000;
color: #d9d9d9;
font-family: sans-serif;
font-size: large;
line-height: 1.4;
margin: 2em auto;
max-width: 800px;
padding: 1em;
scrollbar-gutter: stable both-edges;
}
a {
color: #00a2e7
}
a:visited {
color: #ca1a70
}
h1 {
font-family: serif;
}

View file

@ -1,4 +0,0 @@
cloud-storage
nixos
self-hosting
tailscale

View file

View file

@ -1 +0,0 @@
<li>$DATE - <a href="$URL">$TITLE</a></li>

View file

@ -1 +0,0 @@
<p><br></p></body><footer><hr>tags: $TAGS</footer>

View file

@ -1 +0,0 @@
<header><h1>will holdsworth's blog</h1><nav><a href="index.html">← all posts</a></nav></header><body><h2>$TITLE</h2><p><i>posted: $DATE_POSTED<br>edited: $DATE_EDITED</i></p>

View file

@ -1 +0,0 @@
</ul>

View file

@ -1 +0,0 @@
<h2>posts</h2><ul>

View file

@ -1 +0,0 @@
</body></html>

View file

@ -1 +0,0 @@
<!DOCTYPE html><html><head><title>$TITLE</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="alternate" href="atom.xml" type="application/atom+xml" title="Atom feed"/><style>body{font-family:verdana;margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;color:#d9d9d9;background-color:#000;padding:0 10px}html a{color:#00a2e7}html a:visited {color:#ca1a70}h1,h2,h3{line-height:1.2}</style></head><body>

View file

@ -1 +0,0 @@
<p><br></p></body><footer><hr>feeds: <a href="atom.xml">atom</a>, <a href="rss.xml">rss</a></footer>

View file

@ -1 +0,0 @@
<header><h1>will holdsworth's blog</h1><nav></nav></header><body>

View file

@ -1 +0,0 @@
<a href="$URL">#$NAME</a>

View file

@ -1 +0,0 @@
</body>

View file

@ -1 +0,0 @@
<header><h1>#$TAGS</h1><nav><a href="index.html">← all posts</a></header></nav><body>

View file

@ -1 +0,0 @@
</p>

View file

@ -1 +0,0 @@
<p>tags:

View file

@ -1 +0,0 @@
,