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

Don't split autoloaded modules into a separate derivation #631

Merged
merged 2 commits into from
Nov 17, 2024

Conversation

binarin
Copy link
Contributor

@binarin binarin commented Nov 16, 2024

Apparently ../modules is creating a separate derivation that contains only that folder, so it's now separate from the flake source. But this transient derivation isn't mentioned explicitly anywhere in the flake outputs. It makes it impossible to target those modules in disabledModules directive.

For example, after this change is applied, users can solve issues like #577 locally, by just adding the following snippet to their configuration:

disabledModules = [ "${inputs.stylix}/modules/regreet/nixos.nix" ];

@binarin binarin force-pushed the master branch 4 times, most recently from 7cff232 to 22422ce Compare November 16, 2024 09:54
Apparently `../modules` is creating a separate derivation that
contains only that folder, so it's now separate from the flake source.
But this transient derivation isn't mentioned explicitly in the flake
outputs. It makes it impossible to target those modules in
`disabledModules` directive.

For example, after this change is applied, users can solve issues like
danth#577 locally, by just adding
the following snippet to their configuration:

    disabledModules = [ "${inputs.stylix}/modules/regreet/nixos.nix" ];
Copy link
Collaborator

@trueNAHO trueNAHO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

I have only one formatting nitpick.

docs/src/tricks.md Outdated Show resolved Hide resolved
@trueNAHO trueNAHO requested a review from danth November 17, 2024 15:45
Copy link
Owner

@danth danth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :))

@trueNAHO trueNAHO enabled auto-merge (squash) November 17, 2024 16:40
@trueNAHO trueNAHO merged commit 9b61cc3 into danth:master Nov 17, 2024
10 checks passed
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.

3 participants