chore: regular adds removes fixes
This commit is contained in:
20
config/home-manager/packages/go.nix
Normal file
20
config/home-manager/packages/go.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
pinnedPkgs = import (fetchTarball {
|
||||
url = "https://github.com/NixOS/nixpkgs/archive/d4f247e89f6e10120f911e2e2d2254a050d0f732.tar.gz";
|
||||
# Update this SHA256 when a new version is required ^^^
|
||||
# You can find them here: https://www.nixhub.io/packages/vscode
|
||||
}) { };
|
||||
in
|
||||
{
|
||||
# Use the pinned Go for the programs configuration
|
||||
programs.go = {
|
||||
enable = true;
|
||||
package = pinnedPkgs.go;
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
GOPATH = "${config.home.homeDirectory}/go";
|
||||
GOBIN = "${config.home.homeDirectory}/go/bin";
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user