From 76f3e14d5b078c0e5af83f566b83cfc6f6a80859 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sat, 7 Oct 2023 12:28:56 +0200 Subject: [PATCH] pinwheel: Add `nix-index` module --- hosts/pinwheel/configuration.nix | 1 + hosts/pinwheel/modules/nix-index/default.nix | 21 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 hosts/pinwheel/modules/nix-index/default.nix diff --git a/hosts/pinwheel/configuration.nix b/hosts/pinwheel/configuration.nix index 9d527a6..4486b2d 100644 --- a/hosts/pinwheel/configuration.nix +++ b/hosts/pinwheel/configuration.nix @@ -114,6 +114,7 @@ config-manager.flakePath = "/home/alex/config"; mod = { + nix-index.enable = true; greetd.enable = true; git.enable = true; openvpn.enable = true; diff --git a/hosts/pinwheel/modules/nix-index/default.nix b/hosts/pinwheel/modules/nix-index/default.nix new file mode 100644 index 0000000..6cccee0 --- /dev/null +++ b/hosts/pinwheel/modules/nix-index/default.nix @@ -0,0 +1,21 @@ +{ lib, config, ... }: +let + enabled = config.mod.nix-index.enable; +in +{ + options = { + mod.nix-index = { + enable = lib.mkEnableOption "add nix-index module"; + }; + }; + + config = lib.mkIf enabled { + home-manager.users.alex = { + programs.nix-index = { + enable = true; + + enableZshIntegration = true; + }; + }; + }; +}