No description
Find a file
2025-11-25 19:43:31 +01:00
cmd chore: add package comments, changelog some minor code improvements 2025-11-25 19:43:31 +01:00
utils chore: add package comments, changelog some minor code improvements 2025-11-25 19:43:31 +01:00
.envrc chore: setup gomod2nix 2025-11-19 17:57:16 +01:00
.gitignore chore: setup gomod2nix 2025-11-19 17:57:16 +01:00
.golangci.yml refactor: add stricter linter, make cli more testable, cleanup 2025-11-23 16:24:37 +01:00
CHANGELOG.md chore: add package comments, changelog some minor code improvements 2025-11-25 19:43:31 +01:00
default.nix chore: release v0.2.1 2025-11-25 19:00:50 +01:00
docs.md feat: doc generation, update derivation with man and shell completion 2025-11-22 19:43:48 +01:00
flake.lock chore: setup gomod2nix 2025-11-19 17:57:16 +01:00
flake.nix chore: setup gomod2nix 2025-11-19 17:57:16 +01:00
go.mod refactor: add stricter linter, make cli more testable, cleanup 2025-11-23 16:24:37 +01:00
go.sum feat: doc generation, update derivation with man and shell completion 2025-11-22 19:43:48 +01:00
gomod2nix.toml feat: doc generation, update derivation with man and shell completion 2025-11-22 19:43:48 +01:00
hei.1.man feat: doc generation, update derivation with man and shell completion 2025-11-22 19:43:48 +01:00
main.go refactor: add stricter linter, make cli more testable, cleanup 2025-11-23 16:24:37 +01:00
main_test.go refactor: rename exec command to make it more clear in captures stdio 2025-11-24 16:54:32 +01:00
README.md chore: add package comments, changelog some minor code improvements 2025-11-25 19:43:31 +01:00
shell.nix chore: setup gomod2nix 2025-11-19 17:57:16 +01:00
Taskfile.yml feat: basic implementation of all the commands from nim version 2025-11-22 19:01:20 +01:00

hei - hey in go

A simple tool to manage your nix environment.

This is a port of hey to Nim, with some extra features.

The main idea is a unified simple way to deal with the nix command line tools.

hei can be used as a flake in your config, or you could run it directly here to test it out.

Run it without arguments to see the help message.

Features

  • Fast
  • Fully featured shell autocomplete
  • Automatically uses nom for builds if available
  • Work easily with generations, including nvd for diffs
  • Pull and upgrade your flake in one command

Try it out

nix run github:marcusramberg/hei

NAME

hei - A simple consistent command wrapper for nix

SYNOPSIS

hei

[--debug|-D]
[--dry-run|-d]
[--flake|-f]=[value]
[--help|-h]
[--version|-v]

DESCRIPTION

A simple consistent command wrapper for nix

Usage:

hei [GLOBAL OPTIONS] [command [COMMAND OPTIONS]] [ARGUMENTS...]

GLOBAL OPTIONS

--debug, -D: Enable debug logging

--dry-run, -d: Perform a dry run without making any changes

--flake, -f="": Path to flake. Will default to auto-detect

--help, -h: show help

--version, -v: print the version

COMMANDS

build

Run nix flake check on your flake

--help, -h: show help

help, h

Shows a list of commands or help for one command

check

Run checks on the given flake paths or the default ones if none are provided

--help, -h: show help

help, h

Shows a list of commands or help for one command

gc

Garbage collect & optimize nix store

--all, -a: Collect all garbage

--help, -h: show help

--system, -s: Collect system garbage

help, h

Shows a list of commands or help for one command

gen

Manage nix generations

--help, -h: show help

list

List nix generations

--help, -h: show help

help, h

Shows a list of commands or help for one command

delete

Build the given flake paths or the default ones if none are provided

--help, -h: show help

help, h

Shows a list of commands or help for one command

diff

Build the given flake paths or the default ones if none are provided

--help, -h: show help

help, h

Shows a list of commands or help for one command

switch

Switch generation

--help, -h: show help

help, h

Shows a list of commands or help for one command

help, h

Shows a list of commands or help for one command

p

Shortcut for nix profile commands

--help, -h: show help

help, h

Shows a list of commands or help for one command

rebuild

Rebuild your nix configuration

--fast, -f: Build in fast mode

--help, -h: show help

--offline, -o: Build in offline mode

--rollback, -r: Build in fast mode

--update, -u: Pull on nix flake before rebuilding

help, h

Shows a list of commands or help for one command

repl

open a repl in your nix config

--help, -h: show help

help, h

Shows a list of commands or help for one command

rollback

Roll back to previous generation of nixos. See gen list for the current generations.

--help, -h: show help

help, h

Shows a list of commands or help for one command

Search nixpkgs for packages

--help, -h: show help

help, h

Shows a list of commands or help for one command

show

Run nix flake show on the given flake paths or the default ones if none are provided

--help, -h: show help

help, h

Shows a list of commands or help for one command

ssh

Run a hei command on a remote NixOS system

--help, -h: show help

help, h

Shows a list of commands or help for one command

swap

Recursively swap nix-store symlinks with copies (or back)

--help, -h: show help

help, h

Shows a list of commands or help for one command

test

Run a nix check

--help, -h: show help

--interactive, -i: Run the test with the interctive test driver

help, h

Shows a list of commands or help for one command

upgrade

deprecated, use rebuild -u instead

--help, -h: show help

help, h

Shows a list of commands or help for one command

update

Update the given flake paths or the default ones if none are provided

--help, -h: show help

help, h

Shows a list of commands or help for one command

help, h

Shows a list of commands or help for one command

completion

Generate shell completion scripts

--help, -h: show help

help, h

Shows a list of commands or help for one command