feat: small corrections

This commit is contained in:
Youwen Wu 2025-01-02 02:04:55 -08:00
parent 962b0962f5
commit 24438e1fb6
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
3 changed files with 8 additions and 9 deletions

View file

@ -194,7 +194,7 @@ in documentation
selfRev = self.rev;
# I often use this pattern due to the above reason
selfRev' = if (self ? rev) then self.rev else "FALLBACK"
selfRev' = if (self ? rev) then self.rev else "FALLBACK";
}
}
```
@ -216,7 +216,7 @@ environment.
You can set an environment variable to get the right time.
```
```nix
SOURCE_DATE_EPOCH = builtins.toString self.lastModified;
```

View file

@ -18,9 +18,9 @@ blog](https://mitchellh.com/writing/nix-with-dockerfiles).
## Basic GitHub action
A guilty habit I've gotten into is setting up CI for every single project I
work on and really putting those GitHub actions free minutes to use. It's so
trivial when using Nix, since you literally don't have to do anything extra the
A habit I've gotten into is setting up CI for every single project I work on
and really putting those GitHub actions free minutes to use. It's so trivial
when using Nix, since you literally don't have to do anything extra the
majority of the time. Just copy paste in a GitHub action that installs Nix and
runs `nix build`. That's it.

View file

@ -6,11 +6,10 @@ title: "Alexandria: a knowledge garden"
---
Welcome! You've stumbled upon (or perhaps were pointed to) my public-facing
[Zettelkasten](https://en.wikipedia.org/wiki/Zettelkasten), or _knowledge
garden_.
[_knowledge garden_](https://en.wikipedia.org/wiki/Zettelkasten). garden_.
This is where I grow my ideas, and they are meticulously tagged to form the
knowledge webs you see in the top right.
knowledge graphs you see in the top right.
Currently this is a very new vault and the only contents are the trash notes
which I took in the fall quarter of 2024. You can find them in
@ -19,7 +18,7 @@ which I took in the fall quarter of 2024. You can find them in
the weekly notes.
If you're interested in the Nix package manager, I've also started maintaining
a sort of "cheat sheet" or "tips and tricks" collection around variou quirks
a sort of "cheat sheet" or "tips and tricks" collection around various quirks
and features of the NixOS / nixpkgs ecosystem in
[[nixos-cheat-sheet]]. Maybe you'll find something useful in
there!