go: Separate file
This commit is contained in:
parent
bf796d9587
commit
f83806a307
5 changed files with 22 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
|||
{ pkgs, config, ... }: {
|
||||
imports = [
|
||||
./c.nix
|
||||
./python.nix
|
||||
./common.nix
|
||||
./go.nix
|
||||
./python.nix
|
||||
];
|
||||
}
|
||||
|
|
19
hm/dev/go.nix
Normal file
19
hm/dev/go.nix
Normal 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}"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue