flake-edit(1)
π 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 yourflake.nix, or a directory that contains aflake.nix. Defaults toflake.nixin the current directory. ποΈ--lock-file<LOCK_FILE>β where yourflake.locklives. Defaults toflake.lockin 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 editingflake.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 idflake-edit-change(1)β change an existing flake reference's URIflake-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 againflake-edit-toggle(1)β toggle an input between its active url and a stored alternate πflake-edit-follow(1)β automatically add and removefollowsdeclarationsflake-edit-add-follow(1)β manually add a singlefollowsdeclarationflake-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--diffand--no-lockare 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
- nixpkgs unstable: flake-edit 0.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms