2023-12-23 15:50:47 +03:00
|
|
|
{
|
2024-05-03 15:30:40 +03:00
|
|
|
description = "Treefmt: once CLI to format your repo";
|
2023-12-23 15:50:47 +03:00
|
|
|
|
2024-05-13 12:24:26 +03:00
|
|
|
nixConfig = {
|
2024-06-28 22:11:33 +03:00
|
|
|
extra-substituters = ["https://numtide.cachix.org"];
|
|
|
|
extra-trusted-public-keys = ["numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="];
|
2024-05-13 12:24:26 +03:00
|
|
|
};
|
|
|
|
|
2023-12-23 15:50:47 +03:00
|
|
|
inputs = {
|
2024-06-28 22:11:33 +03:00
|
|
|
blueprint = {
|
|
|
|
url = "github:numtide/blueprint";
|
2023-12-23 15:50:47 +03:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
devshell = {
|
|
|
|
url = "github:numtide/devshell";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
gomod2nix = {
|
|
|
|
url = "github:nix-community/gomod2nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2024-05-08 10:54:58 +03:00
|
|
|
inputs.flake-utils.follows = "devshell/flake-utils";
|
2023-12-23 15:50:47 +03:00
|
|
|
};
|
2024-05-01 16:24:30 +03:00
|
|
|
flake-compat.url = "github:nix-community/flake-compat";
|
2024-06-28 22:11:33 +03:00
|
|
|
nix-filter.url = "github:numtide/nix-filter";
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
treefmt-nix = {
|
|
|
|
url = "github:numtide/treefmt-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-12-23 15:50:47 +03:00
|
|
|
};
|
|
|
|
|
2024-06-28 22:11:33 +03:00
|
|
|
outputs = inputs: let
|
|
|
|
inherit (inputs.nixpkgs) lib;
|
|
|
|
in
|
|
|
|
inputs.blueprint {
|
2023-12-23 15:50:47 +03:00
|
|
|
inherit inputs;
|
2024-06-28 22:11:33 +03:00
|
|
|
prefix = "nix/";
|
|
|
|
nixpkgs.config = {
|
|
|
|
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) ["terraform"];
|
|
|
|
};
|
2023-12-23 15:50:47 +03:00
|
|
|
};
|
|
|
|
}
|