blob: 18b67406323728922952c4c43b5395843d8f465e (
plain) (
tree)
|
|
{
description = "A collection of nix flake templates";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils = {
url = "github:numtide/flake-utils";
inputs = {
systems.follows = "systems";
};
};
systems = {
url = "github:nix-systems/x86_64-linux"; # only evaluate for this system
};
};
outputs = {
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages."${system}";
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
nil
alejandra
statix
ltex-ls
cocogitto
];
};
})
// {
templates = {
rust = {
path = ./rust;
description = "A Rust/Crane project";
welcomeText = "Please customize the text in the flake.nix and LICENSE.spdx files; Look at the TODO marks.\n Also run `git init`, `cargo init` and `cog install-hook commit-msg`";
};
awk = {
path = ./awk;
description = "An Awk project";
welcomeText = "Please customize the text in the flake.nix and LICENSE.spdx files; Look at the TODO marks.\n Also run `git init` and `cog install-hook commit-msg`";
};
shell = {
path = ./shell;
description = "A Shell project";
welcomeText = "Please customize the text in the flake.nix and LICENSE.spdx files; Look at the TODO marks.\n Also run `git init` and `cog install-hook commit-msg`";
};
};
};
}
# vim: ts=2
|