From 2c596395b0244d8c00aead9d0308cf4d91d14eeb Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 10 May 2021 18:02:42 +0200 Subject: [PATCH] home: add nix-index --- home/default.nix | 1 + home/nix-index.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 home/nix-index.nix 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; + }; +}