From 9e621aea661862a30055dd991e9a616eeb92e12b Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Thu, 18 Jul 2024 23:37:20 -0700 Subject: [PATCH] Update README --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c1ea40d..9435d9c 100644 --- a/README.md +++ b/README.md @@ -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