feat(build): use Nix flake, go-task and lefthook

This commit is contained in:
Yorick Barbanneau 2024-09-03 00:28:20 +02:00
parent c8e984681d
commit 1c91865705
5 changed files with 154 additions and 60 deletions

32
flake.nix Normal file
View file

@ -0,0 +1,32 @@
{
description = "Devshel for Ansible";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
flake-utils = {
url = "github:numtide/flake-utils";
};
};
outputs = { nixpkgs , flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
in {
devShells = {
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
lefthook
go-task
convco
typos
ansible
];
shellHook = ''
'';
};
};
});
}