diff --git a/configuration.nix b/configuration.nix index 52ef153..926f265 100644 --- a/configuration.nix +++ b/configuration.nix @@ -134,6 +134,7 @@ hardware.grub.enable = true; shell = { tmux.enable = true; + nix.enable = true; direnv.enable = true; starship.enable = true; fish = { diff --git a/modules/shell/nix.nix b/modules/shell/nix.nix new file mode 100644 index 0000000..b172909 --- /dev/null +++ b/modules/shell/nix.nix @@ -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; + }; + }; +}