diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-25 00:17:41 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-25 00:17:41 +0530 |
| commit | 165cde749fc899d4c86eb6de97d3b7c4373eb7b3 (patch) | |
| tree | ec4d3cc00089b815dc0c56761348de4345705c43 /modules/shell/bash/default.nix | |
| parent | c0c5087218c27e31c3e6f66f3937bff22fa0f647 (diff) | |
| download | home-manager-config-165cde749fc899d4c86eb6de97d3b7c4373eb7b3.tar.gz home-manager-config-165cde749fc899d4c86eb6de97d3b7c4373eb7b3.zip | |
Using more descriptive option names.
Diffstat (limited to 'modules/shell/bash/default.nix')
| -rw-r--r-- | modules/shell/bash/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/shell/bash/default.nix b/modules/shell/bash/default.nix index f26e3d8..ee3b4a8 100644 --- a/modules/shell/bash/default.nix +++ b/modules/shell/bash/default.nix @@ -1,13 +1,14 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: { - options = { - bash.enable = lib.mkEnableOption "Enables bash."; + options.shell.bash = { + enable = lib.mkEnableOption "Enables bash."; }; - config = lib.mkIf config.bash.enable { + config = lib.mkIf config.shell.bash.enable { programs.bash.enable = true; programs.bash.historyFile = "${config.xdg.cacheHome}/bash/history"; + programs.bash.shellAliases = config.shell.alias; home.file."${config.xdg.cacheHome}/bash/histroy".text = ""; # Create the cache directory and histroy file }; } |
