Skip to content

Commit

Permalink
Rename default.nix -> module.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Oct 27, 2023
1 parent c6fa5bc commit 721de45
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ dependencies from all projects combined together.
## Development

To add a new project to this repo, create a directory with its name under
[`project-flakes/`](project-flakes/), and inside of it create a `default.nix`
[`project-flakes/`](project-flakes/), and inside of it create a `module.nix`
file. This file is not a flake itself, but a function written in the nix
language that returns a devenv module. A basic example of a `default.nix`:
language that returns a devenv module. A basic example of a `module.nix`:

```nix
# The below line tells CI where to clone the project from when testing
Expand Down
6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
inherit inputs;
pkgs = mkPkgs system;
modules = [{
imports = [ "${projectFlakesDirectory}/${projectName}" ./common.nix ];
imports = [ "${projectFlakesDirectory}/${projectName}/module.nix" ./common.nix ];
}];
};
# Get the directory names in $projectFlakeDirectory as a list.
Expand All @@ -69,7 +69,7 @@
#
# When that happens, we could modify this to be a hardcoded list of
# project names, to avoid users needing to specify `--impure`.
}) (builtins.attrNames (builtins.readDir projectFlakesDirectory )))
}) (builtins.attrNames (builtins.readDir projectFlakesDirectory)))
);
# Define a flake output `composeShell`, which is a function that takes
# a list `projectNames`, and returns an attribute set of the default
Expand All @@ -91,7 +91,7 @@
pkgs = mkPkgs system;
modules = map (projectName: {
imports = [
"${projectFlakesDirectory}/${projectName}"
"${projectFlakesDirectory}/${projectName}/module.nix"
./common.nix
];
}) projectNames;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 721de45

Please sign in to comment.