Forrest logo
back to context overview

nix

List of commands for nix:

  • nix:tldr:17330 nix: Enable the `nix` command.
    $ mkdir -p ~/.config/nix; echo 'experimental-features = nix-command flakes' > ~/.config/nix/nix.conf
    try on your machine
    explain this command
  • nix:tldr:1e3ff nix: Start a shell with the specified packages from nixpkgs available.
    $ nix shell ${nixpkgs#pkg1 nixpkgs#pkg2 nixpkgs#pkg3 ---}
    try on your machine
    explain this command
  • nix:tldr:7733b nix: Display help for the `nix` subcommand.
    $ nix help ${subcommand}
    try on your machine
    explain this command
  • nix:tldr:90303 nix: Remove unused paths from Nix store to free up space.
    $ nix store gc
    try on your machine
    explain this command
  • nix:tldr:a9cc5 nix: Start an interactive environment for evaluating Nix expressions.
    $ nix repl
    try on your machine
    explain this command
  • nix:tldr:b7ccb nix: Search for a package in nixpkgs via its name or description.
    $ nix search nixpkgs ${search_term}
    try on your machine
    explain this command
  • nix:tldr:e80b3 nix: Install some packages from nixpkgs permanently.
    $ nix profile install ${nixpkgs#pkg1 nixpkgs#pkg2 nixpkgs#pkg3 ---}
    try on your machine
    explain this command
back to context overview