rest of the split migration
This commit is contained in:
34
modules/dev/cc/home.nix
Normal file
34
modules/dev/cc/home.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
osConfig ? null,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
hm = inputs.self.lib.hmModule {
|
||||
inherit
|
||||
config
|
||||
inputs
|
||||
osConfig
|
||||
;
|
||||
optionPath = [
|
||||
"dev"
|
||||
"cc"
|
||||
];
|
||||
};
|
||||
cfg = config.my.dev.cc;
|
||||
feature = import ./common.nix { inherit pkgs; };
|
||||
in
|
||||
{
|
||||
options.my.dev.cc.enable = lib.mkEnableOption "Install C/C++ tooling globally";
|
||||
config = lib.mkMerge [
|
||||
{
|
||||
my.dev.cc.enable = lib.mkDefault hm.enabledByDefault;
|
||||
}
|
||||
(lib.mkIf cfg.enable {
|
||||
home.packages = feature.packages;
|
||||
})
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user