Skip to content

Commit

Permalink
Load the proper modules for project configs
Browse files Browse the repository at this point in the history
This is a bug that would have been caught by #94. Regardless of which language
you intended to load a project config for, it always loaded the default. And
that hid additional bugs in the language-specific configs.
  • Loading branch information
sellout committed Oct 4, 2024
1 parent a81be05 commit 86f76b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion base/.config/project/emacs-lisp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
## In elisp repos, we prefer Org over Markdown, so we don’t need this
## formatter.
programs.treefmt.programs.prettier.enable = lib.mkForce false;
vale = {
programs.vale = {
excludes = [
"*.el"
"./Eldev"
Expand Down
4 changes: 4 additions & 0 deletions base/.config/project/nix/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
imports = [
./..
];

## This defaults to `true`, because I want most projects to be
## contributable-to by non-Nix users. However, Nix-specific projects can lean
## into Project Manager and avoid committing extra files.
Expand Down
8 changes: 4 additions & 4 deletions nix/lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ in {
// args
// {
modules =
modules
++ [
[
{_module.args.flaky = self;}
self.projectModules.default
];
primaryModule
]
++ modules;
}
);
in {
Expand Down

0 comments on commit 86f76b4

Please sign in to comment.