Commit 442223190afa
Changed files (1)
modules
profiles
modules/profiles/dev.go.nix
@@ -10,56 +10,55 @@ in
enable = mkEnableOption "Enable go development profile";
};
};
- config = mkIf cfg.enable (
- mkMerge [
- {
- home.sessionVariables = {
- GOPATH = "${config.home.homeDirectory}";
- };
- profiles.dev.enable = true;
- home.packages = with pkgs; [
- gcc
- go
- godef
- golangci-lint
- golint
- gopkgs
- go-outline
- go-symbols
- delve
- goimports
- # vendoring tools
- dep
- my.dep-collector
- # misc
- protobuf
- my.protobuild
- my.ram
- my.sec
- my.goreturns
- my.esc
- my.yaspell
- ];
- xdg.configFile."nr/go" = {
- text = builtins.toJSON [
- { cmd = "pprof"; chan = "unstable"; }
- { cmd = "vndr"; chan = "unstable"; }
- { cmd = "go2nix"; }
- { cmd = "dep2nix"; }
+ config = mkIf cfg.enable
+ (
+ mkMerge [
+ {
+ home.sessionVariables = {
+ GOPATH = "${config.home.homeDirectory}";
+ };
+ profiles.dev.enable = true;
+ home.packages = with pkgs; [
+ gcc
+ go
+ godef
+ golangci-lint
+ golint
+ gopkgs
+ go-outline
+ go-symbols
+ delve
+ goimports
+ # vendoring tools
+ dep
+ # misc
+ protobuf
+ my.protobuild
+ my.ram
+ my.sec
+ my.esc
+ my.yaspell
];
- onChange = "${pkgs.my.nr}/bin/nr go";
- };
- }
- (
- mkIf config.profiles.fish.enable {
- xdg.configFile."fish/conf.d/go.fish".source = ./assets/fish/go.fish;
- programs.fish.shellAbbrs = {
- got = "go test -v";
- gob = "go build -v";
- gol = "golangci-lint run";
+ xdg.configFile."nr/go" = {
+ text = builtins.toJSON [
+ { cmd = "pprof"; chan = "unstable"; }
+ { cmd = "vndr"; chan = "unstable"; }
+ { cmd = "go2nix"; }
+ { cmd = "dep2nix"; }
+ ];
+ onChange = "${pkgs.my.nr}/bin/nr go";
};
}
- )
- ]
- );
+ (
+ mkIf config.profiles.fish.enable {
+ xdg.configFile."fish/conf.d/go.fish".source = ./assets/fish/go.fish;
+ programs.fish.shellAbbrs = {
+ got = "go test -v";
+ gob = "go build -v";
+ gol = "golangci-lint run";
+ };
+ }
+ )
+ ]
+ );
}