Nix-index: install using NixOS module

This commit is contained in:
Toast 2023-08-31 12:40:47 +02:00
parent ed1d2f3830
commit 7d80cffd7f

View file

@ -1,8 +1,15 @@
{ config, pkgs, ... }: { config, ... }:
{ {
environment.systemPackages = [ pkgs.nix-index ]; /* environment.systemPackages = [ pkgs.nix-index ];
programs.bash.interactiveShellInit = '' programs.bash.interactiveShellInit = ''
source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh
''; ''; */
programs.nix-index = {
enable = true;
enableBashIntegration = true;
# I don't use zsh or fish (yet)
enableZshIntegration = false;
enableFishIntegration = false;
};
} }