go: Separate file
This commit is contained in:
parent
bf796d9587
commit
f83806a307
|
@ -336,7 +336,6 @@
|
||||||
# TODO Session variables only get reloaded on login I think.
|
# TODO Session variables only get reloaded on login I think.
|
||||||
sessionPath = [
|
sessionPath = [
|
||||||
"${config.home.homeDirectory}/.local/bin"
|
"${config.home.homeDirectory}/.local/bin"
|
||||||
"${config.home.sessionVariables.GOPATH}"
|
|
||||||
"${config.home.homeDirectory}/.config/dotfiles/hm/scripts" # Not Nix path otherwise it gets converted into store,
|
"${config.home.homeDirectory}/.config/dotfiles/hm/scripts" # Not Nix path otherwise it gets converted into store,
|
||||||
# and then every time you want to modify a script you have to rebuild and re-login...
|
# and then every time you want to modify a script you have to rebuild and re-login...
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
{ pkgs, config, ... }: {
|
{ pkgs, config, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./c.nix
|
./c.nix
|
||||||
./python.nix
|
|
||||||
./common.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}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -6,7 +6,6 @@
|
||||||
direnv = {
|
direnv = {
|
||||||
CARGOHOME = "${config.xdg.cacheHome}/cargo"; # There are config in there that we can version if one want
|
CARGOHOME = "${config.xdg.cacheHome}/cargo"; # There are config in there that we can version if one want
|
||||||
DASHT_DOCSETS_DIR = "${config.xdg.cacheHome}/dash_docsets";
|
DASHT_DOCSETS_DIR = "${config.xdg.cacheHome}/dash_docsets";
|
||||||
GOPATH = "${config.xdg.cacheHome}/go";
|
|
||||||
GRADLE_USER_HOME = "${config.xdg.cacheHome}/gradle";
|
GRADLE_USER_HOME = "${config.xdg.cacheHome}/gradle";
|
||||||
MIX_ARCHIVES = "${config.xdg.cacheHome}/mix/archives";
|
MIX_ARCHIVES = "${config.xdg.cacheHome}/mix/archives";
|
||||||
MONO_GAC_PREFIX = "${config.xdg.cacheHome}/mono";
|
MONO_GAC_PREFIX = "${config.xdg.cacheHome}/mono";
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
c = lib.mkEnableOption "C/C++ dev stuff";
|
c = lib.mkEnableOption "C/C++ dev stuff";
|
||||||
docker = lib.mkEnableOption "Docker dev stuff";
|
docker = lib.mkEnableOption "Docker dev stuff";
|
||||||
fpga = lib.mkEnableOption "FPGA dev stuff";
|
fpga = lib.mkEnableOption "FPGA dev stuff";
|
||||||
|
go = lib.mkEnableOption "Python dev stuff";
|
||||||
perl = lib.mkEnableOption "Perl dev stuff";
|
perl = lib.mkEnableOption "Perl dev stuff";
|
||||||
php = lib.mkEnableOption "PHP dev stuff";
|
php = lib.mkEnableOption "PHP dev stuff";
|
||||||
python = lib.mkEnableOption "Python dev stuff";
|
python = lib.mkEnableOption "Python dev stuff";
|
||||||
|
|
Loading…
Reference in a new issue