combined shell with shell-tools

This commit is contained in:
John Lancaster
2026-03-08 12:37:00 -05:00
parent 9432f35ce8
commit f7735089df
2 changed files with 30 additions and 34 deletions

View File

@@ -1,23 +1,38 @@
{ inputs, ... }:
# This module provides all the shell options
{ inputs, lib, ... }:
{
flake.homeModules.shell-tools = { pkgs, ... }: {
flake.homeModules.shell-tools = { config, pkgs, ... }: {
options.shell.program = lib.mkOption {
type = lib.types.enum [ "bash" "zsh" ];
default = "zsh";
description = "Which interactive shell configuration to enable.";
};
imports = with inputs.self.homeModules; [
shell # Includes option to select between zsh and bash
bash
zsh
# Tools
eza
files
];
home.packages = with pkgs; [
wget
curl
cacert
busybox
gnugrep
dig
btop
uv
xclip
];
config = {
programs.bash.enable = lib.mkForce (config.shell.program == "bash");
programs.zsh.enable = lib.mkForce (config.shell.program == "zsh");
home.shell.enableShellIntegration = true;
home.packages = with pkgs; [
wget
curl
cacert
busybox
gnugrep
dig
btop
uv
xclip
];
};
};
}