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-18 07:26:19 +0200 |
| commit | 4e5ddc8e1f0aaf5206fe364919e61ee047b1fd10 (patch) | |
| tree | 1aa0d230af66aaff35d4f59bc9d4a90fd5968e5d | |
| parent | 93b196f86886ec0516f4e4146313cafcd8e817bf (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 | 3 |
2 files changed, 6 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)" @@ -34,6 +34,9 @@ To get the store path to a pin, use the `get-path` npins subcommand: npins -d nixos/npins get-path <name> +For the Nixpkgs pin store paths `.envrc` defines the env vars `$nixos`, +`$nixos_small` and `$nixos_unstable`. + Build a package under `nixos/profiles/<profile>/pkgs/` (both `<package>.nix` and `<package>/package.nix` map to `<package>`): |
