2020-10-06 22:56:04 +00:00
|
|
|
# Go, go, Golang coders!
|
2020-10-05 01:38:58 +00:00
|
|
|
{ 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 {
|
2020-10-06 22:56:04 +00:00
|
|
|
options.modules.dev.go = {
|
2020-10-05 01:38:58 +00:00
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-10-20 15:56:10 +00:00
|
|
|
config = mkIf cfg.enable {
|
2020-10-05 01:38:58 +00:00
|
|
|
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).
|
2020-10-05 01:38:58 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|