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-14 06:37:06 +0200 |
| commit | 71adbf04349a444f27f0a744f5399021363675e3 (patch) | |
| tree | c5ea4e1c5ca88b33a6b35757a9bfa8d65a5cbd1a | |
| parent | cc1b8372ff2106909ce84f4e22b51f39b0f4654d (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 |
