home: add nix-index
This commit is contained in:
parent
05f291f72a
commit
0dc9495fda
|
@ -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