From a4fb9a83d671a4c7f3ed44df77cdee36604b5411 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Tue, 15 Oct 2024 04:21:26 +0530 Subject: Refactoring code. Stopped using picom. Disabled unused packages and configurations. --- modules/shell/bash/default.nix | 10 +++++----- modules/shell/zsh/default.nix | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'modules/shell') diff --git a/modules/shell/bash/default.nix b/modules/shell/bash/default.nix index 9a81d7a..b845ced 100644 --- a/modules/shell/bash/default.nix +++ b/modules/shell/bash/default.nix @@ -12,9 +12,9 @@ config = lib.mkIf config.shell.bash.enable { shell.default = lib.mkDefault "bash"; shell.command = - if config.shell.default == "bash" then - lib.mkForce "${pkgs.zsh}/bin/bash" - else ""; + lib.mkIf + (config.shell.default == "bash") + "${pkgs.zsh}/bin/bash"; programs.bash.enable = true; programs.bash.historyFile = "${config.xdg.cacheHome}/bash/history"; @@ -25,8 +25,8 @@ ${if config.tools.utils.fzf.enable then else ""} ''; - home.activation.createBashCacheDirectory - = lib.hm.dag.entryAfter + home.activation.createBashCacheDirectory = + lib.hm.dag.entryAfter [ "writeBoundary" ] "mkdir -p ${config.xdg.cacheHome}/bash"; }; diff --git a/modules/shell/zsh/default.nix b/modules/shell/zsh/default.nix index 9dd762d..d599196 100644 --- a/modules/shell/zsh/default.nix +++ b/modules/shell/zsh/default.nix @@ -8,9 +8,9 @@ config = lib.mkIf config.shell.zsh.enable { shell.default = lib.mkDefault "zsh"; shell.command = - if config.shell.default == "zsh" then - lib.mkForce "${pkgs.zsh}/bin/zsh" - else ""; + lib.mkIf + (config.shell.default == "zsh") + "${pkgs.zsh}/bin/zsh"; programs.zsh.enable = true; programs.zsh.dotDir = ".config/zsh"; -- cgit v1.2.3