From 085ff668ab45ac8d57c093e502b1175a86f2c14e Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Thu, 10 Jul 2025 01:29:48 +0530 Subject: Removed unnecessary packages. --- modules/shell/bash/default.nix | 36 ------------------------------------ modules/shell/default.nix | 28 ---------------------------- modules/shell/zsh/default.nix | 29 ----------------------------- modules/shell/zsh/zshrc | 23 ----------------------- 4 files changed, 116 deletions(-) delete mode 100644 modules/shell/bash/default.nix delete mode 100644 modules/shell/default.nix delete mode 100644 modules/shell/zsh/default.nix delete mode 100644 modules/shell/zsh/zshrc (limited to 'modules/shell') diff --git a/modules/shell/bash/default.nix b/modules/shell/bash/default.nix deleted file mode 100644 index b14669e..0000000 --- a/modules/shell/bash/default.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - options.shell.bash = { - enable = lib.mkOption { - type = lib.types.bool; - description = "Enables bash."; - default = true; - }; - }; - - config = lib.mkIf config.shell.bash.enable { - shell.default = lib.mkDefault "bash"; - shell.command = - lib.mkIf - (config.shell.default == "bash") - "${pkgs.zsh}/bin/bash"; - - programs.bash.enable = true; - programs.bash.historyFile = "${config.xdg.cacheHome}/bash/history"; - programs.bash.shellAliases = config.shell.alias; - programs.bash.bashrcExtra = '' -${if config.tools.utils.fzf.enable then - "eval \"$(fzf --bash)\"" -else ""} -${if config.scripts.enable then - "export PATH=${config.home.homeDirectory}/scripts:$PATH" -else ""} - ''; - - home.activation.createBashCacheDirectory = - lib.hm.dag.entryAfter - [ "writeBoundary" ] - "mkdir -p ${config.xdg.cacheHome}/bash"; - }; -} diff --git a/modules/shell/default.nix b/modules/shell/default.nix deleted file mode 100644 index c2eada9..0000000 --- a/modules/shell/default.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ lib, pkgs, ... }: - -{ - imports = [ - ./bash - ./zsh - ]; - - options.shell = { - default = lib.mkOption { - type = lib.types.enum [ - "bash" - "zsh" - ]; - description = "Default shell."; - }; - - command = lib.mkOption { - type = lib.types.str; - description = "Command for the default shell."; - }; - - alias = lib.mkOption { - type = lib.types.attrs; - description = "Shell aliases."; - }; - }; -} diff --git a/modules/shell/zsh/default.nix b/modules/shell/zsh/default.nix deleted file mode 100644 index 96df967..0000000 --- a/modules/shell/zsh/default.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - options.shell.zsh = { - enable = lib.mkEnableOption "Enables zsh."; - }; - - config = lib.mkIf config.shell.zsh.enable { - shell.default = lib.mkDefault "zsh"; - shell.command = - lib.mkIf - (config.shell.default == "zsh") - "${pkgs.zsh}/bin/zsh"; - - programs.zsh.enable = true; - programs.zsh.dotDir = ".config/zsh"; - programs.zsh.history.path = "${config.xdg.cacheHome}/zsh/history"; - programs.zsh.shellAliases = config.shell.alias; - programs.zsh.initExtra = '' -${if config.tools.utils.fzf.enable then - "eval \"$(fzf --zsh)\"" -else ""} -${builtins.readFile ./zshrc} -${if config.scripts.enable then - "export PATH=${config.home.homeDirectory}/scripts:$PATH" -else ""} - ''; - }; -} diff --git a/modules/shell/zsh/zshrc b/modules/shell/zsh/zshrc deleted file mode 100644 index 3465071..0000000 --- a/modules/shell/zsh/zshrc +++ /dev/null @@ -1,23 +0,0 @@ -setopt PROMPT_SUBST - -autoload -U colors && colors - -autoload -Uz vcs_info -precmd() { vcs_info } - -zstyle ':vcs_info:git:*' formats '%F{red}┄[%F{cyan}%b%c%F{blue}%a%F{red}]' -zstyle ':vcs_info:git:*' actionformats '%F{red}┄[%F{cyan}%b%c%F{blue}%a%F{red}]' - -zstyle ':vcs_info:*+set-message:*' hooks git-untracked git-dirty - -zstyle ':vcs_info:git:*' check-for-changes true -zstyle ':vcs_info:git:*' stagedstr ' %F{green}✓%f' -zstyle ':vcs_info:git:*' unstagedstr ' %F{red}✗%f' -zstyle ':vcs_info:git:*' aheadstr ' %F{blue}⬆%f' -zstyle ':vcs_info:git:*' behindstr ' %F{yellow}⬇%f' - -PROMPT='%F{red}╭──[%F{green}%m%F{red}@%F{blue}%n%F{red}]┄[%F{magenta}%~%F{red}]${vcs_info_msg_0_}%(?..%F{red}┄[%F{white}Exit status: %F{yellow}%?%F{red}] ) -╰─>%f ' - -bindkey "^[[3~" delete-char -bindkey "^?" backward-delete-char -- cgit v1.2.3