Update README

This commit is contained in:
Tim Van Baak 2024-07-18 23:37:20 -07:00
parent e16e492695
commit 9e621aea66
1 changed files with 6 additions and 3 deletions

View File

@ -2,11 +2,14 @@
Repository of lists of one-liners to use as a message-of-the-day.
This repository was a learning exercise; this is not a good example to follow of how to distribute text files with Nix.
## flake
The defaultPackage output of this repository's flake is a derivation containing the motd files in this repository.
Package `motd` is a folder of the MOTD files in `motd/`. Each file's path is also accessible as a passthru attribute on the package.
```
$ nix eval --raw .#motd.rebirth
/nix/store/ikp1hxb1hrzific5wyghm2lvzv27qqxp-motd/boi-rebirth-fortunes.txt
```
## sources