home: add nix-index

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

View file

@ -14,6 +14,7 @@
./gtk.nix ./gtk.nix
./htop.nix ./htop.nix
./jq.nix ./jq.nix
./nix-index.nix
./nm-applet.nix ./nm-applet.nix
./packages.nix ./packages.nix
./pager.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;
};
}