diff options
| author | Martin Fischer <martin@push-f.com> | 2026-10-10 09:02:45 +0200 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-10-11 14:40:57 +0200 |
| commit | c3a7d7f5295e2bd428a5e6b576aa3c6e7a6cee0c (patch) | |
| tree | 1d3bb8c9d55765818548c326beddc8f14ae5f881 | |
| parent | 4a5373e1a5e3ced635d9d1c87d230de40e5334ea (diff) | |
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
| -rw-r--r-- | .envrc | 3 | ||||
| -rw-r--r-- | AGENTS.md | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -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)" @@ -12,6 +12,7 @@ Dependencies are pinned with npins; host-to-channel mappings are defined in `nix * To inspect and edit pins use the `npins` CLI: `npins -d nixos/npins <command>`. * To get the store path to a pin, use the `get-path` npins subcommand. + For the Nixpkgs pin store paths `.envrc` defines the env vars `$nixos`, `$nixos_small`, `$nixos_unstable`. * Avoid `nixos-option`. ## Documentation |
