home: add nix-index

This commit is contained in:
Bruno BELANYI 2021-05-10 18:02:42 +02:00
parent 05f291f72a
commit 0dc9495fda
2 changed files with 14 additions and 0 deletions

View file

@ -14,6 +14,7 @@
./gtk.nix
./htop.nix
./jq.nix
./nix-index.nix
./nm-applet.nix
./packages.nix
./pager.nix

13
home/nix-index.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, lib, ... }:
let
cfg = config.my.home.nix-index;
in
{
options.my.home.nix-index = with lib.my; {
enable = mkDisableOption "nix-index configuration";
};
config.programs.nix-index = lib.mkIf cfg.enable {
enable = true;
};
}