nix3-profile-list(1)

πŸ’… nix3-profile-list(1) β€” bestie edition

okay so this is nix3-profile-list(1), straight out of the General Commands Manual, and it's about to become your new favorite little command. πŸŽ€

⚠️ Warning: This program is experimental and its interface is subject to change. Like, it might change its whole personality on you. Be aware. πŸ’€

🌸 NAME

nix profile list β€” list packages in the profile


✨ SYNOPSIS

nix profile list [option…]

πŸ¦‹ EXAMPLES

  • Wanna see what's installed in your default profile? Say less:
# nix profile list
Name:               gdb
Flake attribute:    legacyPackages.x86_64-linux.gdb
Original flake URL: flake:nixpkgs
Locked flake URL:   github:NixOS/nixpkgs/7b38b03d76ab71bdc8dc325e3f6338d984cc35ca
Store paths:        /nix/store/i6i08pl20rh0lm46g38wk3bfnvhdl43d-gdb-11.1

Name:               blender-bin
Flake attribute:    packages.x86_64-linux.default
Original flake URL: flake:blender-bin
Locked flake URL:   github:edolstra/nix-warez/91f2ffee657bf834e4475865ae336e2379282d34?dir=blender
Store paths:        /nix/store/rlgr8vjhcv6v2rv7ljgl0pr6g74r0cg9-blender-bin-3.1.2
πŸ“Œ Note: you can rebuild a package from a profile unambiguously through its locked flake URL and flake attribute, like:
# nix build github:edolstra/nix-warez/91f2ffee657bf834e4475865ae336e2379282d34?dir=blender#packages.x86_64-linux.default

and that right there will build the package blender-bin shown above. it's giving reproducibility πŸ’–


πŸ‘‘ DESCRIPTION

This command shows what packages are currently installed in a profile. obsessed. For each installed package, it shows the following info:

  • Name: A unique name used to unambiguously identify the package in invocations of nix profile remove and nix profile upgrade. this is your main character identifier 🫢
  • Index: An integer that can be used to unambiguously identify the package in invocations of nix profile remove and nix profile upgrade. (Deprecated, will be removed in a future version in favor of Name.) rip index, you had a good run πŸ’€
  • Flake attribute: The flake output attribute path that provides the package (e.g. packages.x86_64-linux.hello).
  • Original flake URL: The original (β€œunlocked”) flake reference specified by the user when the package was first installed via nix profile install.
  • Locked flake URL: The locked flake reference to which the original flake reference was resolved.
  • Store paths: The store path(s) of the package.

πŸ’… OPTIONS

  • --json β€” Produce output in JSON format, suitable for consumption by another program. feeding it to another program? slay, go off πŸ“
  • --no-pretty β€” Print compact JSON output on a single line, even when the output is a terminal. Some commands may print multiple JSON objects on separate lines.

See --pretty.

  • --pretty β€” Print multi-line, indented JSON output for readability.
    • Default: indent if output is to a terminal.
    • This option is only effective when --json is also specified. (yes bestie, --json is the girlboss here, --pretty is her hype woman ✨)
  • --profile path β€” The profile to operate on.

🌈 Common evaluation options

  • --arg name expr β€” Pass the value expr as the argument name to Nix functions.
  • --arg-from-file name path β€” Pass the contents of file path as the argument name to Nix functions.
  • --arg-from-stdin name β€” Pass the contents of stdin as the argument name to Nix functions.
  • --argstr name string β€” Pass the string string as the argument name to Nix functions.
  • --debugger β€” Start an interactive environment if evaluation fails. it's giving "we can fix this together" πŸ₯Ί
  • --eval-store store-url β€” The URL of the Nix store to use for evaluation, i.e. to store derivations (.drv files) and inputs referenced by them.
  • --impure β€” Allow access to mutable paths and repositories. chaotic energy, but make it a flag πŸ”₯
  • --include, -I path β€” Add path to search path entries used to resolve lookup paths.
    • This option may be given multiple times.
    • Paths added through -I take precedence over the nix-path configuration setting and the NIX_PATH environment variable.
  • --override-flake original-ref resolved-ref β€” Override the flake registries, redirecting original-ref to resolved-ref.
  • --debug β€” Set the logging verbosity level to β€˜debug’.
  • --log-format format β€” Set the format of log output; one of raw, internal-json, bar or bar-with-logs.
  • --print-build-logs, -L β€” Print full build logs on standard error.
  • --quiet β€” Decrease the logging verbosity level. shhh 🀫
  • --verbose, -v β€” Increase the logging verbosity level.

⭐ Miscellaneous global options

  • --help β€” Show usage information.
  • --offline β€” Disable substituters and consider all previously downloaded files up-to-date.
  • --option name value β€” Set the Nix configuration setting name to value (overriding nix.conf).
  • --refresh β€” Consider all previously downloaded files out-of-date.
  • --repair β€” During evaluation, rewrite missing or corrupted files in the Nix store. During building, rebuild missing or corrupted store paths. healing era πŸ’œ
  • --version β€” Show version information.
πŸ“Ž Note: See man nix.conf for overriding configuration settings with command line flags.

and that's the whole page, bestie!! no cap, every flag is accounted for πŸ’… This has been nix3-profile-list(1) from the General Commands Manual β€” sending you love, locked flake URLs, and zero deprecated indices. periodt. πŸŽ€βœ¨πŸ¦‹πŸ’–

πŸ“¦ where this page comes from