diff --git a/home/default.nix b/home/default.nix index 9b33d23..7f0e587 100644 --- a/home/default.nix +++ b/home/default.nix @@ -14,6 +14,7 @@ ./gtk.nix ./htop.nix ./jq.nix + ./nix-index.nix ./nm-applet.nix ./packages.nix ./pager.nix diff --git a/home/nix-index.nix b/home/nix-index.nix new file mode 100644 index 0000000..ae6f338 --- /dev/null +++ b/home/nix-index.nix @@ -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; + }; +}