1
2
Fork
You've already forked nie
1
nie is a nix-wrapper that allows you to build, run or load your derivations similar to the nix3 command-line interface and flakes. It does not dependent on Flakes or any other experimental features and relies solely on the stable nix2 interface.
  • Rust 87.1%
  • Nix 12.9%
jzbor 3b3d6e061d
All checks were successful
/ build-container (push) Successful in 3m53s
/ check (push) Successful in 2m26s
Prepare v0.1.3
2026年04月09日 22:35:21 +02:00
.forgejo/workflows Update checkout action 2026年03月31日 02:15:35 +02:00
npins Prepare v0.1.3 2026年04月09日 22:35:21 +02:00
src Update documentation 2026年04月09日 20:42:50 +02:00
.gitignore Initial commit 2025年12月27日 01:57:10 +01:00
Cargo.lock Prepare v0.1.3 2026年04月09日 22:35:21 +02:00
Cargo.toml Prepare v0.1.3 2026年04月09日 22:35:21 +02:00
default.nix Improve default.nix 2026年04月09日 22:28:53 +02:00
flake.nix Use cornflakes for statix, deadnix and flake.nix 2026年01月14日 22:47:19 +01:00
README.md Add 'Contributing' section to the README 2026年04月09日 20:51:38 +02:00
testrepos.txt Add file with testrepos 2026年03月30日 23:56:45 +02:00

Nie

nie is a nix-wrapper that allows you to build, run or load your derivations similar to the nix3 command-line interface and flakes. It does not dependent on Flakes or any other experimental features and relies solely on the stable nix2 interface.

You can try out the program in a temporary shell:

# on a Flake-enabled system:
nix shell git+https://codeberg.org/jzbor/nie.git
# on any other machine with Nix installed
nix-shell -E '(import (builtins.fetchGit { url = "https://codeberg.org/jzbor/nie"; }) {}).packages.default'
# on a machine with nie installed
nie shell codeberg://jzbor/nie

Features

  • Fetch repositories from Codeberg, Github and other Git sources.
  • Discover packages and checks from default.nix, flake.nix or a custom Nix file.
  • Add programs to your shell and enter development shells.
  • Pin shells for automatic or offline usage.
  • Compatibility with Flakes is enabled by lix-project/flake-compat

Examples

# Show all outputs the `jzbor/nie` repo specifies in its `default.nix`
nie show codeberg://jzbor/nie
# Show all outputs the `jzbor/nie` repo specifies in its `flake.nix`
nie show --flake-compat codeberg://jzbor/nie
# Run the `hello` program from nixpkgs
nie run github://nixos/nixpkgs/nixos-unstable#hello
# View the man page for the `vim` program from nixpkgs
nie run --man github://nixos/nixpkgs/nixos-unstable#cargo

Non-Goals

  • NixOS/HomeManager integration: You can use nixos-rebuild, home-manager, nh or custom scripts for those.
  • Input pinning: Use npins, niv or Nixtamal.
  • Derivation and store analysis: Check out nix-tree or nix-sweep.

Contributing

I currently have no capacity to review code contributions. Exceptions can be made after discussion via e-mail or in an issue. Contributions in the form of feedback or issues are greatly appreciated.