conversations
listlengths
2
2
[ { "from": "human", "value": "Show all the outputs of a flake on github via the `nix3-flake` command" }, { "from": "gpt", "value": "`nix flake show {{github:owner/repo}}`" } ]
[ { "from": "human", "value": "Display help via the `nix3-flake` command" }, { "from": "gpt", "value": "`nix flake --help`" } ]
[ { "from": "human", "value": "Tell me about `nix profile`." }, { "from": "gpt", "value": "Install, update and remove packages from Nix profiles.\nMore information: <https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-profile.html>.\n" } ]
[ { "from": "human", "value": "Install some packages from nixpkgs into the default profile via the `nix3-profile` command" }, { "from": "gpt", "value": "`nix profile install {{nixpkgs#pkg1 nixpkgs#pkg2 ...}}`" } ]
[ { "from": "human", "value": "Install a package from a flake on GitHub into a custom profile via the `nix3-profile` command" }, { "from": "gpt", "value": "`nix profile install {{github:owner/repo/pkg}} --profile {{./path/to/directory}}`" } ]
[ { "from": "human", "value": "List packages currently installed in the default profile via the `nix3-profile` command" }, { "from": "gpt", "value": "`nix profile list`" } ]
[ { "from": "human", "value": "Remove a package installed from nixpkgs from the default profile, by name via the `nix3-profile` command" }, { "from": "gpt", "value": "`nix profile remove {{legacyPackages.x86_64-linux.pkg}}`" } ]
[ { "from": "human", "value": "Upgrade packages in the default to the latest available versions via the `nix3-profile` command" }, { "from": "gpt", "value": "`nix profile upgrade`" } ]
[ { "from": "human", "value": "Rollback (cancel) the latest action on the default profile via the `nix3-profile` command" }, { "from": "gpt", "value": "`nix profile rollback`" } ]
[ { "from": "human", "value": "Tell me about `nix registry`." }, { "from": "gpt", "value": "Manage a Nix flake registry.\nSee also: `nix3 flake` for information about flakes.\nMore information: <https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-registry.html>.\n" } ]
[ { "from": "human", "value": "Pin the `nixpkgs` revision to the current version of the upstream repository via the `nix3-registry` command" }, { "from": "gpt", "value": "`nix registry pin {{nixpkgs}}`" } ]
[ { "from": "human", "value": "Pin an entry to the latest version of the branch, or a particular reivision of a GitHub repository via the `nix3-registry` command" }, { "from": "gpt", "value": "`nix registry pin {{entry}} {{github:owner/repo/branch_or_revision}}`" } ]
[ { "from": "human", "value": "Add a new entry that always points to the latest version of a GitHub repository, updating automatically via the `nix3-registry` command" }, { "from": "gpt", "value": "`nix registry add {{entry}} {{github:owner/repo}}`" } ]
[ { "from": "human", "value": "Remove a registry entry via the `nix3-registry` command" }, { "from": "gpt", "value": "`nix registry remove {{entry}}`" } ]
[ { "from": "human", "value": "See documentation about what Nix flake registries are via the `nix3-registry` command" }, { "from": "gpt", "value": "`nix registry --help`" } ]
[ { "from": "human", "value": "Tell me about `nix repl`." }, { "from": "gpt", "value": "Start an interactive environment for evaluating Nix expressions.\nSee <https://nixos.org/manual/nix/stable/language/index.html> for a description of the Nix expression language.\nMore information: <https://nixo...
[ { "from": "human", "value": "Start an interactive environment for evaluating Nix expressions via the `nix3-repl` command" }, { "from": "gpt", "value": "`nix repl`" } ]
[ { "from": "human", "value": "Load all packages from a flake (e.g. `nixpkgs`) into scope via the `nix3-repl` command" }, { "from": "gpt", "value": "`:lf {{nixpkgs}}`" } ]
[ { "from": "human", "value": "Build a package from an expression via the `nix3-repl` command" }, { "from": "gpt", "value": "`:b {{expression}}`" } ]
[ { "from": "human", "value": "Start a shell with package from the expression available via the `nix3-repl` command" }, { "from": "gpt", "value": "`:u {{expression}}`" } ]
[ { "from": "human", "value": "Start a shell with dependencies of the package from the expression available via the `nix3-repl` command" }, { "from": "gpt", "value": "`:s {{expression}}`" } ]
[ { "from": "human", "value": "Tell me about `nix run`." }, { "from": "gpt", "value": "Run an application from a Nix flake.\nSee also: `nix3 flake` for information about flakes.\nMore information: <https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-run.html>.\n" } ]
[ { "from": "human", "value": "Run the default application in the flake in the current directory via the `nix3-run` command" }, { "from": "gpt", "value": "`nix run`" } ]
[ { "from": "human", "value": "Run a command whose name matches the package name from nixpkgs (if you want a different command from that package, see `tldr nix3 shell`) via the `nix3-run` command" }, { "from": "gpt", "value": "`nix run nixpkgs#{{pkg}}`" } ]
[ { "from": "human", "value": "Run a command with provided arguments via the `nix3-run` command" }, { "from": "gpt", "value": "`nix run nixpkgs#{{vim}} -- {{path/to/file}}`" } ]
[ { "from": "human", "value": "Run from a remote repository via the `nix3-run` command" }, { "from": "gpt", "value": "`nix run {{remote_name}}:{{owner}}/{{repo}}`" } ]
[ { "from": "human", "value": "Run from a remote repository using a specific tag, revision or branch via the `nix3-run` command" }, { "from": "gpt", "value": "`nix run {{remote_name}}:{{owner}}/{{repo}}/{{reference}}`" } ]
[ { "from": "human", "value": "Run from a remote repository specifying a subdirectory and a program via the `nix3-run` command" }, { "from": "gpt", "value": "`nix run \"{{remote_name}}:{{owner}}/{{repo}}?dir={{dir_name}}#{{app}}\"`" } ]
[ { "from": "human", "value": "Run the flake of a GitHub pull request via the `nix3-run` command" }, { "from": "gpt", "value": "`nix run github:{{owner}}/{{repo}}/pull/{{number}}/head`" } ]
[ { "from": "human", "value": "Tell me about `nix search`." }, { "from": "gpt", "value": "Search for packages in a Nix flake.\nSee also: `nix3 flake` for information about flakes.\nMore information: <https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-search.html>.\n" } ]
[ { "from": "human", "value": "Search `nixpkgs` for a package based on its name or description via the `nix3-search` command" }, { "from": "gpt", "value": "`nix search {{nixpkgs}} {{search_term...}}`" } ]
[ { "from": "human", "value": "Show description of a package from nixpkgs via the `nix3-search` command" }, { "from": "gpt", "value": "`nix search {{nixpkgs#pkg}}`" } ]
[ { "from": "human", "value": "Show all packages available from a flake on github via the `nix3-search` command" }, { "from": "gpt", "value": "`nix search {{github:owner/repo}}`" } ]
[ { "from": "human", "value": "Tell me about `nix shell`." }, { "from": "gpt", "value": "Start a shell in which the specified packages are available.\nSee also: `nix-shell` for setting up development environments, `nix3 flake` for information about flakes.\nMore information: <https://nixos.org/man...
[ { "from": "human", "value": "Start an interactive shell with some packages from `nixpkgs` via the `nix3-shell` command" }, { "from": "gpt", "value": "`nix shell {{nixpkgs#pkg1 nixpkgs#packageSet.pkg2 ...}}`" } ]
[ { "from": "human", "value": "Start a shell providing a package from an older version of `nixpkgs` (21.05) via the `nix3-shell` command" }, { "from": "gpt", "value": "`nix shell {{nixpkgs/nixos-21.05#pkg}}`" } ]
[ { "from": "human", "value": "Start a shell with the \"default package\" from a flake in the current directory, printing build logs if any builds happen via the `nix3-shell` command" }, { "from": "gpt", "value": "`nix shell -L`" } ]
[ { "from": "human", "value": "Start a shell with a package from a flake on GitHub via the `nix3-shell` command" }, { "from": "gpt", "value": "`nix shell {{github:owner/repo#pkg}}`" } ]
[ { "from": "human", "value": "Run a command in a shell with a package via the `nix3-shell` command" }, { "from": "gpt", "value": "`nix shell {{nixpkgs#pkg}} -c {{some-cmd --someflag 'Some other arguments'}}`" } ]
[ { "from": "human", "value": "Tell me about `nix store`." }, { "from": "gpt", "value": "Manipulate the Nix store.\nSee also: `nix-store`.\nMore information: <https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-store.html>.\n" } ]
[ { "from": "human", "value": "Collect garbage, i.e. remove unused paths to reduce space usage via the `nix3-store` command" }, { "from": "gpt", "value": "`nix store gc`" } ]
[ { "from": "human", "value": "Hard-link identical files together to reduce space usage via the `nix3-store` command" }, { "from": "gpt", "value": "`nix store optimise`" } ]
[ { "from": "human", "value": "Delete a specific store path (most be unused) via the `nix3-store` command" }, { "from": "gpt", "value": "`nix store delete {{/nix/store/...}}`" } ]
[ { "from": "human", "value": "List a contents of the store path, on a remote store via the `nix3-store` command" }, { "from": "gpt", "value": "`nix store --store {{https://cache.nixos.org}} ls {{/nix/store/...}}`" } ]
[ { "from": "human", "value": "Show the differences in versions between two store paths, with their respective dependencies via the `nix3-store` command" }, { "from": "gpt", "value": "`nix store diff-closures {{/nix/store/...}} {{/nix/store/...}}`" } ]
[ { "from": "human", "value": "Tell me about `nix why-depends`." }, { "from": "gpt", "value": "Show why a package depends on another package.\nMore information: <https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-why-depends.html>.\n" } ]
[ { "from": "human", "value": "Show why the currently running NixOS system requires a certain store path via the `nix3-why-depends` command" }, { "from": "gpt", "value": "`nix why-depends {{/run/current-system}} {{/nix/store/...}}`" } ]
[ { "from": "human", "value": "Show why a package from nixpkgs requires another package as a _build-time_ dependency via the `nix3-why-depends` command" }, { "from": "gpt", "value": "`nix why-depends --derivation {{nixpkgs#dependent}} {{nixpkgs#dependency}}`" } ]
[ { "from": "human", "value": "Tell me about `nix-build`." }, { "from": "gpt", "value": "Build a Nix expression.\nSee also: `nix3 build`.\nMore information: <https://nixos.org/manual/nix/stable/command-ref/nix-build.html>.\n" } ]
[ { "from": "human", "value": "Build a Nix expression via the `nix-build` command" }, { "from": "gpt", "value": "`nix-build '<nixpkgs>' --attr {{firefox}}`" } ]
[ { "from": "human", "value": "Build a sandboxed Nix expression (on non-NixOS) via the `nix-build` command" }, { "from": "gpt", "value": "`nix-build '<nixpkgs>' --attr {{firefox}} --option sandbox true`" } ]
[ { "from": "human", "value": "Tell me about `nix classic`." }, { "from": "gpt", "value": "A classic, stable interface to a powerful package manager that makes package management reliable, reproducible, and declarative.\nSome Nix commands such as `nix-build`, `nix-shell`, `nix-env`, and `nix-store...
[ { "from": "human", "value": "Search for a package in nixpkgs via its name via the `nix-classic` command" }, { "from": "gpt", "value": "`nix-env -qaP {{search_term_regexp}}`" } ]
[ { "from": "human", "value": "Start a shell with the specified packages available via the `nix-classic` command" }, { "from": "gpt", "value": "`nix-shell -p {{pkg1 pkg2 pkg3...}}`" } ]
[ { "from": "human", "value": "Install some packages permanently via the `nix-classic` command" }, { "from": "gpt", "value": "`nix-env -iA {{nixpkgs.pkg1 nixpkgs.pkg2...}}`" } ]
[ { "from": "human", "value": "Show all dependencies of a store path (package), in a tree format via the `nix-classic` command" }, { "from": "gpt", "value": "`nix-store --query --tree {{/nix/store/...}}`" } ]
[ { "from": "human", "value": "Update the channels (repositories) via the `nix-classic` command" }, { "from": "gpt", "value": "`nix-channel --update`" } ]
[ { "from": "human", "value": "Remove unused paths from Nix store via the `nix-classic` command" }, { "from": "gpt", "value": "`nix-collect-garbage`" } ]
[ { "from": "human", "value": "Tell me about `nix-collect-garbage`." }, { "from": "gpt", "value": "Delete unused and unreachable nix store paths.\nGenerations can be listed using `nix-env --list-generations`.\nMore information: <https://nixos.org/manual/nix/stable/command-ref/nix-collect-garbage.h...
[ { "from": "human", "value": "Delete all store paths unused by current generations of each profile via the `nix-collect-garbage` command" }, { "from": "gpt", "value": "`sudo nix-collect-garbage --delete-old`" } ]
[ { "from": "human", "value": "Simulate the deletion of old store paths via the `nix-collect-garbage` command" }, { "from": "gpt", "value": "`sudo nix-collect-garbage --delete-old --dry-run`" } ]
[ { "from": "human", "value": "Delete all store paths older than 30 days via the `nix-collect-garbage` command" }, { "from": "gpt", "value": "`sudo nix-collect-garbage --delete-older-than 30d`" } ]
[ { "from": "human", "value": "Tell me about `nix-env`." }, { "from": "gpt", "value": "Manipulate or query Nix user environments.\nMore information: <https://nixos.org/manual/nix/stable/#sec-nix-env>.\n" } ]
[ { "from": "human", "value": "List all installed packages via the `nix-env` command" }, { "from": "gpt", "value": "`nix-env -q`" } ]
[ { "from": "human", "value": "Query installed packages via the `nix-env` command" }, { "from": "gpt", "value": "`nix-env -q {{search_term}}`" } ]
[ { "from": "human", "value": "Query available packages via the `nix-env` command" }, { "from": "gpt", "value": "`nix-env -qa {{search_term}}`" } ]
[ { "from": "human", "value": "Install package via the `nix-env` command" }, { "from": "gpt", "value": "`nix-env -iA nixpkgs.{{pkg_name}}`" } ]
[ { "from": "human", "value": "Install a package from a URL via the `nix-env` command" }, { "from": "gpt", "value": "`nix-env -i {{pkg_name}} --file {{example.com}}`" } ]
[ { "from": "human", "value": "Uninstall package via the `nix-env` command" }, { "from": "gpt", "value": "`nix-env -e {{pkg_name}}`" } ]
[ { "from": "human", "value": "Upgrade one package via the `nix-env` command" }, { "from": "gpt", "value": "`nix-env -u {{pkg_name}}`" } ]
[ { "from": "human", "value": "Upgrade all packages via the `nix-env` command" }, { "from": "gpt", "value": "`nix-env -u`" } ]
[ { "from": "human", "value": "Tell me about `nix`." }, { "from": "gpt", "value": "A powerful package manager that makes package management reliable, reproducible, and declarative.\n`nix` is experimental and requires enabling experimental features. For a classic, stable interface, see `tldr nix cl...
[ { "from": "human", "value": "Enable the `nix` command via the `nix` command" }, { "from": "gpt", "value": "`mkdir -p ~/.config/nix; echo 'experimental-features = nix-command flakes' > ~/.config/nix/nix.conf`" } ]
[ { "from": "human", "value": "Search for a package in nixpkgs via its name or description via the `nix` command" }, { "from": "gpt", "value": "`nix search nixpkgs {{search_term}}`" } ]
[ { "from": "human", "value": "Start a shell with the specified packages from nixpkgs available via the `nix` command" }, { "from": "gpt", "value": "`nix shell {{nixpkgs#pkg1 nixpkgs#pkg2 nixpkgs#pkg3 ...}}`" } ]
[ { "from": "human", "value": "Install some packages from nixpkgs permanently via the `nix` command" }, { "from": "gpt", "value": "`nix profile install {{nixpkgs#pkg1 nixpkgs#pkg2 nixpkgs#pkg3 ...}}`" } ]
[ { "from": "human", "value": "Remove unused paths from Nix store to free up space via the `nix` command" }, { "from": "gpt", "value": "`nix store gc`" } ]
[ { "from": "human", "value": "Start an interactive environment for evaluating Nix expressions via the `nix` command" }, { "from": "gpt", "value": "`nix repl`" } ]
[ { "from": "human", "value": "Display help for a specific subcommand via the `nix` command" }, { "from": "gpt", "value": "`nix help {{subcommand}}`" } ]
[ { "from": "human", "value": "Tell me about `nixpkgs-review`." }, { "from": "gpt", "value": "Review pull requests in the NixOS packages repository (nixpkgs).\nAfter a successful build, a `nix-shell` with all built packages is started.\nMore information: <https://github.com/Mic92/nixpkgs-review#us...
[ { "from": "human", "value": "Build changed packages in the specified pull request via the `nixpkgs-review` command" }, { "from": "gpt", "value": "`nixpkgs-review pr {{pr_number|pr_url}}`" } ]
[ { "from": "human", "value": "Build changed packages and post a comment with a report (requires setting up a token in `hub`, `gh`, or the `GITHUB_TOKEN` environment variable) via the `nixpkgs-review` command" }, { "from": "gpt", "value": "`nixpkgs-review pr --post-result {{pr_number|pr_url}}`" ...
[ { "from": "human", "value": "Build changed packages and print a report via the `nixpkgs-review` command" }, { "from": "gpt", "value": "`nixpkgs-review pr --print-result {{pr_number|pr_url}}`" } ]
[ { "from": "human", "value": "Build changed packages in a local commit via the `nixpkgs-review` command" }, { "from": "gpt", "value": "`nixpkgs-review rev {{HEAD}}`" } ]
[ { "from": "human", "value": "Build changed packages that haven't been committed yet via the `nixpkgs-review` command" }, { "from": "gpt", "value": "`nixpkgs-review wip`" } ]
[ { "from": "human", "value": "Build changed packages that have been staged via the `nixpkgs-review` command" }, { "from": "gpt", "value": "`nixpkgs-review wip --staged`" } ]
[ { "from": "human", "value": "Tell me about `nix-shell`." }, { "from": "gpt", "value": "Start an interactive shell based on a Nix expression.\nSee also: `nix3 shell`.\nMore information: <https://nixos.org/manual/nix/stable/command-ref/nix-shell.html>.\n" } ]
[ { "from": "human", "value": "Start with nix expression in `shell.nix` or `default.nix` in the current directory via the `nix-shell` command" }, { "from": "gpt", "value": "`nix-shell`" } ]
[ { "from": "human", "value": "Run shell command in non-interactive shell and exit via the `nix-shell` command" }, { "from": "gpt", "value": "`nix-shell --run \"{{command}} {{argument1 argument2 ...}}\"`" } ]
[ { "from": "human", "value": "Start with expression in `default.nix` in the current directory via the `nix-shell` command" }, { "from": "gpt", "value": "`nix-shell {{default.nix}}`" } ]
[ { "from": "human", "value": "Start with packages loaded from nixpkgs via the `nix-shell` command" }, { "from": "gpt", "value": "`nix-shell --packages {{package1 package2 ...}}`" } ]
[ { "from": "human", "value": "Start with packages loaded from specific nixpkgs revision via the `nix-shell` command" }, { "from": "gpt", "value": "`nix-shell --packages {{package1 package2 ...}} -I nixpkgs={{https://github.com/NixOS/nixpkgs/archive/nixpkgs_revision.tar.gz}}`" } ]
[ { "from": "human", "value": "Evaluate rest of file in specific interpreter, for use in `#!-scripts` (see <https://nixos.org/manual/nix/stable/#use-as-a-interpreter>) via the `nix-shell` command" }, { "from": "gpt", "value": "`nix-shell -i {{interpreter}} --packages {{package1 package2 ...}}`" ...
[ { "from": "human", "value": "Tell me about `nix-store`." }, { "from": "gpt", "value": "Manipulate or query the Nix store.\nSee also: `nix3 store`.\nMore information: <https://nixos.org/manual/nix/stable/command-ref/nix-store.html>.\n" } ]
[ { "from": "human", "value": "Collect garbage, such as removing unused paths via the `nix-store` command" }, { "from": "gpt", "value": "`nix-store --gc`" } ]
[ { "from": "human", "value": "Hard-link identical files together to reduce space usage via the `nix-store` command" }, { "from": "gpt", "value": "`nix-store --optimise`" } ]
[ { "from": "human", "value": "Delete a specific store path (must be unused) via the `nix-store` command" }, { "from": "gpt", "value": "`nix-store --delete {{/nix/store/...}}`" } ]
[ { "from": "human", "value": "Show all dependencies of a store path (package), in a tree format via the `nix-store` command" }, { "from": "gpt", "value": "`nix-store --query --tree {{/nix/store/...}}`" } ]
[ { "from": "human", "value": "Calculate the total size of a certain store path with all the dependencies via the `nix-store` command" }, { "from": "gpt", "value": "`du -cLsh $(nix-store --query --references {{/nix/store/...}})`" } ]
[ { "from": "human", "value": "Show all dependents of a particular store path via the `nix-store` command" }, { "from": "gpt", "value": "`nix-store --query --referrers {{/nix/store/...}}`" } ]