host mac
This commit is contained in:
34
modules/shell/exercism/home.nix
Normal file
34
modules/shell/exercism/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 = [
|
||||
"shell"
|
||||
"exercism"
|
||||
];
|
||||
};
|
||||
cfg = config.my.shell.exercism;
|
||||
exercism = import ./common.nix { inherit pkgs; };
|
||||
in
|
||||
{
|
||||
options.my.shell.exercism.enable = lib.mkEnableOption "Exercism coding practice platform";
|
||||
config = lib.mkMerge [
|
||||
{
|
||||
my.shell.exercism.enable = lib.mkDefault hm.enabledByDefault;
|
||||
}
|
||||
(lib.mkIf cfg.enable {
|
||||
home.packages = exercism.packages;
|
||||
})
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user