From 554449ce3172465e0b96b4c09af3d8ff42320a92 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Mon, 25 Sep 2023 22:16:20 -0700 Subject: [PATCH] add instructions to diff changes --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 62711e8..e69ba2b 100644 --- a/README.md +++ b/README.md @@ -50,3 +50,24 @@ services. Also, the design will be extendable to allow users to add services not - [X] Database Postgres - [ ] Slow log monitoring. - [ ] Export metrics to Prometheus. + +## Tips + +### Diff changes + +```bash +$ nix run nixpkgs#colmena -- build +... +Built "/nix/store/yyw9rgn8v5jrn4657vwpg01ydq0hazgx-nixos-system-baryum-23.11pre-git" + +# Make some changes + +$ nix run nixpkgs#colmena -- build +... +Built "/nix/store/16n1klx5cxkjpqhrdf0k12npx3vn5042-nixos-system-baryum-23.11pre-git" + +$ nix run nixpkgs#nix-diff -- \ + /nix/store/yyw9rgn8v5jrn4657vwpg01ydq0hazgx-nixos-system-baryum-23.11pre-git \ + /nix/store/16n1klx5cxkjpqhrdf0k12npx3vn5042-nixos-system-baryum-23.11pre-git \ + --color always | less +```