Skip to content

Commit

Permalink
feat(shell): add nix-index cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuciael committed May 31, 2024
1 parent 3d206e9 commit df06ae5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
hardware.grub.enable = true;
shell = {
tmux.enable = true;
nix.enable = true;
direnv.enable = true;
starship.enable = true;
fish = {
Expand Down
20 changes: 20 additions & 0 deletions modules/shell/nix.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
config,
lib,
...
}:
with lib;
with lib.my; let
cfg = config.modules.shell.nix;
in {
options.modules.shell.nix = {
enable = mkEnableOption "nix shell integrations";
};

config = mkIf (cfg.enable) {
programs = {
command-not-found.enable = false;
nix-index.enable = true;
};
};
}

0 comments on commit df06ae5

Please sign in to comment.