From f3e75af976e6fbf279d932a7d160ca066d753943 Mon Sep 17 00:00:00 2001 From: Bastien Riviere Date: Fri, 1 Sep 2023 17:53:59 +0200 Subject: [PATCH] chore: use go1.21 --- flake.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/flake.nix b/flake.nix index c0b7d46..7e97288 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,17 @@ system, ... }: { + _module.args.pkgs = import inputs.nixpkgs { + inherit system; + overlays = [ + (final: prev: { + go = prev.go_1_21; + gopls = prev.gopls.override {buildGoModule = prev.buildGo121Module;}; + }) + ]; + config = {}; + }; + treefmt = { projectRootFile = ".git/config"; programs = {