-
-
Notifications
You must be signed in to change notification settings - Fork 94
Feature Request: tidy Command #609
Copy link
Copy link
Open
Labels
feature requestRequest a feature from the developers.Request a feature from the developers.needs discussionFurther discussion is needed. No action until discussion is finalized.Further discussion is needed. No action until discussion is finalized.
Metadata
Metadata
Assignees
Labels
feature requestRequest a feature from the developers.Request a feature from the developers.needs discussionFurther discussion is needed. No action until discussion is finalized.Further discussion is needed. No action until discussion is finalized.
This is a meta issue that regroups my unfulfilled needs about nix toolings so far:
duplicate- duplicate assignments check: check for occurrences of duplicate similar value assignments (e.g.hardware.nvidia.open = truewhile the default already sets it), this would permit configs to rely more on upstream and sane defaults instead of duplicated hardcodingsstateVersion-stateVersioncheck for outdated options and updater: a command that would check for nix, nixos, and home manager's currently setstateVersionand check in upstream (including flakes inputs) for outdated options (example:default = lib.versionAtLeast config.system.stateVersion "26.05"), with a flag to update the currently setstateVersionto the latest safe valuehttps://github.com/search?type=code&q=org:NixOS+stateVersion
nixConfig-nixConfiginheritance prompting: a command that would loop for every flake inputs for anixConfigmerge intonix.conf(similar to how the current nix 3 unified cli proposes to merge the current flake'snixConfigintonix.conf), with a--recursivebehavior flag (loop for flake inputsnixConfigof flake inputs... recursively)also see nix: add recursive nixConfig support for flake inputs NixOS/nix#15584 which I authored and proposes a similar idea to the upstream nix 3 unified cli.
(note: I am aware that @NotAShelf explicitly dislike flake's
nixConfig, also see HandlenixConfigin flakes #70).