2022-05-20 12:32:45 +01:00
|
|
|
{
|
|
|
|
description = "Samw's Nix flake templates";
|
2022-06-19 15:20:35 +01:00
|
|
|
inputs = {utils.url = "github:numtide/flake-utils";};
|
2022-05-20 12:32:45 +01:00
|
|
|
|
2022-06-19 15:20:35 +01:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
utils,
|
|
|
|
nixpkgs,
|
|
|
|
}:
|
2022-05-20 12:32:45 +01:00
|
|
|
{
|
|
|
|
templates = {
|
|
|
|
rust = {
|
|
|
|
path = ./rust;
|
|
|
|
description = "My preferred rust setup.";
|
|
|
|
};
|
2022-06-11 16:01:36 +01:00
|
|
|
go = {
|
|
|
|
path = ./go;
|
|
|
|
description = "My preferred go setup.";
|
|
|
|
};
|
2022-06-11 16:02:05 +01:00
|
|
|
devshell = {
|
|
|
|
path = ./devshell;
|
|
|
|
description = "A basic devshell setup";
|
|
|
|
};
|
2022-05-20 12:32:45 +01:00
|
|
|
};
|
2022-06-19 15:20:35 +01:00
|
|
|
}
|
|
|
|
// utils.lib.eachDefaultSystem (system: let
|
|
|
|
pkgs = import nixpkgs {inherit system;};
|
|
|
|
in {formatter = pkgs.alejandra;});
|
2022-05-20 12:32:45 +01:00
|
|
|
}
|