flake-edit(1)

πŸ“¦
version 0.4.0 Β· 2 versions
, in nixpkgs unstable

πŸ’… flake-edit β€” bestie, we're editing flake inputs and it's giving ✨effortless✨

Sooo this is the flake-edit(1) manual page from the General Commands Manual, and honestly? It's a whole vibe. You get to edit your flake inputs with ease β€” that's literally the entire pitch, and it ate. πŸ“


πŸ¦‹ NAME πŸ¦‹

flake-edit β€” edit your flake inputs with ease, no cap πŸ’–


🌸 SYNOPSIS 🌸

flake-edit [--flake] [--lock-file] [--diff] [--no-lock]
[--non-interactive] [--no-cache] [--cache] [--config] [-h|--help]
[-V|--version] <subcommands>

Like, that's the whole shape of it β€” global flags, then a subcommand, periodt. πŸŽ€


✨ DESCRIPTION ✨

Edit your flake inputs with ease.

That's it. That's the description. Short queen behavior, we respect it. πŸ‘‘


πŸ’œ OPTIONS πŸ’œ

Okay so here are all the flags, and there are a lot, and every single one matters, so buckle up bestie:

  • --flake <FLAKE> β€” the path to your flake.nix, or a directory that contains a flake.nix. Defaults to flake.nix in the current directory. πŸ—‚οΈ
  • --lock-file <LOCK_FILE> β€” where your flake.lock lives. Defaults to flake.lock in the current directory. Defaults are life fr fr.
  • --diff β€” prints a diff of the changes instead of writing them to disk. Preview mode, iconic, no regrets. πŸ‘€
  • --no-lock β€” skips updating the lockfile after editing flake.nix. Sometimes you just don't wanna, and that's valid.
  • --non-interactive β€” disables interactive prompts. For when you want zero conversation, only results.
  • --no-cache β€” disables reading from and writing to the completion cache. Boundaries, honestly. 🚫
  • --cache <CACHE> β€” path to a custom cache file, if you're fancy like that.
  • --config <CONFIG> β€” path to a custom configuration file. Your config, your rules. πŸ’…
  • -h, --help β€” prints help (and heads up: it says to see a summary with -h). Cute of it.
  • -V, --version β€” prints version. Obviously. ⭐

🌈 SUBCOMMANDS 🌈

Here's the whole crew β€” each one has its own manual page, iykyk:

  • flake-edit-add(1) β€” add a new flake reference πŸŽ€
  • flake-edit-remove(1) β€” remove a specific flake reference based on its id
  • flake-edit-change(1) β€” change an existing flake reference's URI
  • flake-edit-list(1) β€” list flake inputs πŸ“‹
  • flake-edit-update(1) β€” update inputs to their latest specified release πŸ”₯
  • flake-edit-pin(1) β€” pin inputs to their current or a specified rev πŸ“Œ
  • flake-edit-unpin(1) β€” unpin an input so it tracks the upstream default again
  • flake-edit-toggle(1) β€” toggle an input between its active url and a stored alternate πŸ”„
  • flake-edit-follow(1) β€” automatically add and remove follows declarations
  • flake-edit-add-follow(1) β€” manually add a single follows declaration
  • flake-edit-config(1) β€” manage flake-edit configuration βš™οΈ
  • flake-edit-help(1) β€” print this message or the help of the given subcommand(s) 🫢

🧚 EXAMPLES 🧚

These are the moment, honestly. Screenshot them, memorize them, live them:

Add a new flake input:

flake-edit add nixpkgs github:NixOS/nixpkgs

Add an input with automatic ID inference:

flake-edit add github:nix-community/home-manager

Remove a flake input:

flake-edit remove nixpkgs

List all current inputs:

flake-edit list

Update all inputs to latest versions:

flake-edit update

Pin an input to its current revision:

flake-edit pin nixpkgs

Toggle an input between its active url and a stored alternate:

flake-edit toggle rust-overlay

Switch an input to a local checkout, storing the previous url as a commented alternate:

flake-edit toggle ../rust-overlay

Remove a stored variant's line and flip to the alternative first:

flake-edit toggle --remove ../rust-overlay

Preview changes without applying them:

flake-edit --diff add home-manager github:nix-community/home-manager

Add input without updating the lockfile:

flake-edit --no-lock add nixos-hardware github:NixOS/nixos-hardware

See? Every single one, preserved, untouched, slaying. πŸ’―


πŸ‘‘ AUTHORS πŸ‘‘

  • Alexander Kenji Berthold β€” the main character who made all this happen 🫢

Heads up bestie: those examples with --diff and --no-lock are the safe-preview combos β€” nothing wrong with peeking before you commit to a change. πŸ™ˆ

<div align="center">✨ okay that's the whole page, tysm for reading ✨</div>

So like, this is flake-edit version 0.4.0 β€” the footer says flake-edit 0.4.0 - no_date - no_rev, and it's dated... nowhere, bestie, it's giving no_date and no_rev energy 😭. The source/version line signs off the page along with the flake-edit(1) manual reference, and we simply must mention it because it's part of the record. Byeee, go edit some inputs πŸ’…πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from