Skip to content

refactor(nix): more package/module renames/modernization#191

Merged
water-sucks merged 5 commits intonix-community:mainfrom
water-sucks:rename-nix-identifiers
Feb 23, 2026
Merged

refactor(nix): more package/module renames/modernization#191
water-sucks merged 5 commits intonix-community:mainfrom
water-sucks:rename-nix-identifiers

Conversation

@water-sucks
Copy link
Copy Markdown
Collaborator

@water-sucks water-sucks commented Feb 22, 2026

This PR continues the renaming efforts done in #183, and renames the entire services.nixos-cli module to programs.nixos-cli instead, since the nixos-cli program itself isn't really a system service, nor does it have one to speak of.

It also renames the config option to settings, since config is usually designated for raw configuration, and settings for structured Nix config, as per nixpkgs conventions.

Additionally, it completes the rename of the actual packages from bare nixos (which was the name of the binary and original project, but wasn't very descriptive), to nixos-cli and nixos-cli-legacy, and wraps the nixos-cli package with the latest Nix as a runtime dependency, as to prevent Nix from bringing in packages for the wrong platform and so that more recent Nix versions can be relied on.

@water-sucks water-sucks requested a review from Sporif February 22, 2026 00:28
@water-sucks water-sucks force-pushed the rename-nix-identifiers branch from 60f97ea to 1ff4604 Compare February 22, 2026 22:03
@water-sucks water-sucks requested a review from Sporif February 22, 2026 22:07
I used to think of nixos-cli as a "system service", rather than as a
program conceptually, but this doesn't really make sense, to be frank.
This has been a long time coming; the project has been referred to with
a -cli prefix for over a year now, so soft-deprecate the package aliases
in case anyone is still using them, and move them over to the kebab-case
with the nixos-cli prefix if needed.
@water-sucks water-sucks force-pushed the rename-nix-identifiers branch from 1ff4604 to 671157d Compare February 23, 2026 00:58
@Sporif
Copy link
Copy Markdown
Collaborator

Sporif commented Feb 23, 2026

Thanks for all this! All looks good to me.

@water-sucks water-sucks merged commit 8ec74ee into nix-community:main Feb 23, 2026
2 checks passed
@water-sucks water-sucks deleted the rename-nix-identifiers branch February 23, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants