Added module for go support
This commit is contained in:
parent
f52e880b4c
commit
86c853de20
42
modules/home/development/languages/go.nix
Normal file
42
modules/home/development/languages/go.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.go;
|
||||
in
|
||||
{
|
||||
options.modules.go = {
|
||||
enable = mkEnableOption "go";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# Development packages
|
||||
home.packages = with pkgs; [
|
||||
];
|
||||
|
||||
# VSCode configuration
|
||||
programs.vscode = {
|
||||
profiles.default = {
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
golang.go
|
||||
|
||||
];
|
||||
|
||||
userSettings = {
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Neovim configuration
|
||||
# programs.nixvim = {
|
||||
# plugins.rustaceanvim = {
|
||||
# enable = true;
|
||||
# };
|
||||
# };
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user