made development into an option

added it to configuration
This commit is contained in:
2026-07-12 12:55:40 -05:00
parent 4f6c1e337d
commit ac862dfc1f
10 changed files with 200 additions and 87 deletions
+24 -15
View File
@@ -1,22 +1,31 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
go
config,
lib,
pkgs,
...
}:
let
cfg = config.workstation.development.go;
in
{
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
go
# Language server
gopls
# Language server
gopls
# Formatter with automatic import management
gotools
# Formatter with automatic import management
gotools
# Linting
golangci-lint
# Linting
golangci-lint
# Debugger
delve
# Debugger
delve
# Useful extras
air # Live reload for web apps
];
# Useful extras
air # Live reload for web apps
];
};
}