- Nix 87.1%
- JavaScript 9.9%
- Shell 2.2%
- Just 0.8%
|
|
||
|---|---|---|
| .config | ||
| docs | ||
| LICENSES | ||
| news | ||
| src | ||
| .editorconfig | ||
| .envrc | ||
| .gitignore | ||
| .prettierignore | ||
| CODE_OF_CONDUCT.md | ||
| DCO.md | ||
| flake.lock | ||
| flake.nix | ||
| Justfile | ||
| README.md | ||
| REUSE.toml | ||
MfGames Project Setup Flake
An opinionated setup for projects using Nix flakes.
According to Larry Wall, there are three virtues of a great coder: laziness, impatience, and hubris.
Over the years, the complexity of being a developer has only increased. Fortunately (or unfortunately depending the mood), we have embraced laziness and developed tools to help automate some of the more tedious tasks to ensure everything is formatted correctly and properly recorded. This has resulted in libraries such as:
In addition, we need to document policies that guide our projects:
But, like the rest of the development world, all of these tools change and evolve. New tools become useful to ensure formatting while others are taken over by successors. Not to mention opinions and aesthetics change and what works yesterday doesn't always look right today.
Nix
This project is intended to be used with Nix flakes and can be used directly as an input.
{
inputs.mfgames-project-setup.url = "git+https://src.mfgames.com/nixos-contrib/mfgames-project-setup-flake.git";
}
To use it, the module must be added first, then the options as used.
{
outputs = ...
imports = [
inputs.mfgames-project-setup.flakeModules.default
];
mfgames.project.enable = true;
}
Of course, this being Nix, there are many ways of creating a devShell. This is one way of using the config inside the shell.
devShells = ...
default = pkgs.mkShell {
packages = [] ++ config.mfgames.project.packages;
shellHook = config.mfgames.project.shellHook;
};