From 4e5ddc8e1f0aaf5206fe364919e61ee047b1fd10 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 10 Oct 2026 09:02:45 +0200 Subject: shell: add env vars for channel store paths Useful for quickly looking up package and module definitions, e.g: diff {$nixos,$nixos_unstable}/pkgs/by-name/ju/jujutsu --- .envrc | 3 +++ AGENTS.md | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..03fee3a --- /dev/null +++ b/.envrc @@ -0,0 +1,3 @@ +export nixos="$(npins -d nixos/npins get-path nixos)" +export nixos_small="$(npins -d nixos/npins get-path nixos-small)" +export nixos_unstable="$(npins -d nixos/npins get-path nixos-unstable)" diff --git a/AGENTS.md b/AGENTS.md index 53c787f..b5b06c6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -34,6 +34,9 @@ To get the store path to a pin, use the `get-path` npins subcommand: npins -d nixos/npins get-path +For the Nixpkgs pin store paths `.envrc` defines the env vars `$nixos`, +`$nixos_small` and `$nixos_unstable`. + Build a package under `nixos/profiles//pkgs/` (both `.nix` and `/package.nix` map to ``): -- cgit v1.3.1