nixos-config/modules/dev/go.nix
2020-10-20 23:59:30 +08:00

24 lines
465 B
Nix
Executable File

# Go, go, Golang coders!
{ config, options, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.dev.go;
in
{
options.modules.dev.go = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
my.packages = with pkgs; [
delve # Wait, Go doesn't have a proper debugger?
go # The other zoomer proglang (READ: proglang is a zoomer term for programming language).
];
};
}