mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 06:28:11 +09:00
22 lines
368 B
Nix
22 lines
368 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.applications.nix-index.homeManager;
|
|
in
|
|
{
|
|
options.my.applications.nix-index.homeManager = {
|
|
enable = lib.mkEnableOption "nix-index home-manager configuration";
|
|
};
|
|
|
|
config.home-manager.sharedModules = [
|
|
{
|
|
config = lib.mkIf cfg.enable {
|
|
programs.nix-index.enable = true;
|
|
};
|
|
}
|
|
];
|
|
}
|