refactor: use 'import-as-enable' pattern
This commit is contained in:
@@ -1,18 +1,7 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.go = {
|
||||
enable = lib.mkEnableOption "go language";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.go.enable {
|
||||
home.packages = with pkgs; [
|
||||
go
|
||||
gopls
|
||||
];
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
go
|
||||
gopls
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user