mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 02:18:12 +09:00
21 lines
373 B
Nix
21 lines
373 B
Nix
{
|
|
inputs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.applications.nix-index.system;
|
|
in
|
|
{
|
|
imports = [ inputs.nix-index-database.nixosModules.default ];
|
|
|
|
options.my.applications.nix-index.system = {
|
|
enable = lib.mkEnableOption "nix-index system configuration";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.nix-index-database.comma.enable = true;
|
|
};
|
|
}
|