go: Separate file

This commit is contained in:
Geoffrey Frogeye 2024-01-10 14:01:18 +01:00
parent bf796d9587
commit f83806a307
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
5 changed files with 22 additions and 3 deletions

View file

@ -1,7 +1,8 @@
{ pkgs, config, ... }: {
imports = [
./c.nix
./python.nix
./common.nix
./go.nix
./python.nix
];
}

19
hm/dev/go.nix Normal file
View file

@ -0,0 +1,19 @@
# Untested post-nix
{ pkgs, lib, config, ... }:
{
config = lib.mkIf config.frogeye.dev.go {
frogeye = {
direnv = {
GOPATH = "${config.xdg.cacheHome}/go";
};
};
home = {
packages = with pkgs; [
go
];
sessionPath = [
"${config.home.sessionVariables.GOPATH}"
];
};
};
}