Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(configuration): add configuration for a perSystem flake-parts option #485

Merged
merged 1 commit into from
May 1, 2024

Conversation

shivaraj-bh
Copy link
Contributor

Here’s what the debug.options and currentSystem.options looks like in services-flake’s dev flake:

services-flake/dev on  main [!] via ❄️  impure (nix-shell-env) took 2m9s
❯ nix repl
Welcome to Nix 2.18.2. Type :? for help.

nix-repl> :lf .
warning: Git tree '/Users/shivaraj/oss/services-flake' is dirty
Added 23 variables.

nix-repl> currentSystem.options
{ _module = { ... }; allModuleArgs = { ... }; apps = { ... }; checks = { ... }; debug = { ... }; devShells = { ... }; flake-root = { ... }; formatter = { ... }; legacyPackages = { ... }; packages = { ... }; pre-commit = { ... }; treefmt = { ... }; }

nix-repl> debug.options
{ _module = { ... }; allSystems = { ... }; debug = { ... }; flake = { ... }; perInput = { ... }; perSystem = { ... }; systems = { ... }; transposition = { ... }; }

currentSystem.options comprises of pre-commit and treefmt options, whereas debug.options doesn’t.

@inclyc inclyc added the documentation Improvements or additions to documentation label Apr 30, 2024
@Ruixi-rebirth Ruixi-rebirth merged commit f42a865 into nix-community:main May 1, 2024
18 checks passed
@Ruixi-rebirth Ruixi-rebirth changed the title docs(configuration): Add configuration for a perSystem flake-parts option docs(configuration): add configuration for a perSystem flake-parts option May 1, 2024
@shivaraj-bh shivaraj-bh deleted the patch-1 branch May 2, 2024 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants