nixos-config/modules/dev/go.nix

22 lines
452 B
Nix
Raw Normal View History

# Go, go, Golang coders!
{ config, options, lib, pkgs, ... }:
with lib;
2020-10-20 15:56:10 +00:00
2020-12-29 14:32:59 +00:00
let cfg = config.modules.dev.go;
2020-10-25 15:49:14 +00:00
in {
options.modules.dev.go = {
enable = mkOption {
type = types.bool;
default = false;
};
};
2020-10-20 15:56:10 +00:00
config = mkIf cfg.enable {
my.packages = with pkgs; [
2020-10-25 15:49:14 +00:00
delve # Wait, Go doesn't have a proper debugger?
go # The other zoomer proglang (READ: proglang is a zoomer term for programming language).
];
};
}