use flake for direnv templates by default

This commit is contained in:
2026-06-18 20:42:36 +02:00
parent e974cceec6
commit 82eaa21709
7 changed files with 139 additions and 31 deletions
+24
View File
@@ -0,0 +1,24 @@
{
description = "Go dev shell";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
go
gopls
gofumpt
revive
# add project-specific packages below
];
};
});
}