feat: massive refactor
This commit is contained in:
@@ -4,17 +4,17 @@
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
lib.my.makeHomePackageConfig {
|
||||
inherit config pkgs;
|
||||
packageName = "go";
|
||||
packagePath = [ "go" ];
|
||||
optionPath = [
|
||||
"coding"
|
||||
"langs"
|
||||
"go"
|
||||
];
|
||||
extraConfig = {
|
||||
let
|
||||
cfg = config.my.coding.langs.go;
|
||||
in
|
||||
{
|
||||
options.my.coding.langs.go = {
|
||||
enable = lib.mkEnableOption "go";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
my.hm.home.packages = with pkgs; [
|
||||
go
|
||||
gotools
|
||||
gopls
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user