home: add nix-index
This commit is contained in:
parent
986701d1c8
commit
2c596395b0
|
@ -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
13
home/nix-index.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue