diff --git a/content/Hacks/nixos-cheat-sheet.md b/content/Hacks/nixos-cheat-sheet.md index 784d605..e5dbb8d 100644 --- a/content/Hacks/nixos-cheat-sheet.md +++ b/content/Hacks/nixos-cheat-sheet.md @@ -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; ``` diff --git a/content/Hacks/nixos-ci.md b/content/Hacks/nixos-ci.md index dd3d2ff..cad0f39 100644 --- a/content/Hacks/nixos-ci.md +++ b/content/Hacks/nixos-ci.md @@ -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. diff --git a/content/index.md b/content/index.md index 4c46be4..24240fd 100644 --- a/content/index.md +++ b/content/index.md @@ -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!