From 165cde749fc899d4c86eb6de97d3b7c4373eb7b3 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Wed, 25 Sep 2024 00:17:41 +0530 Subject: Using more descriptive option names. --- modules/shell/bash/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules/shell/bash/default.nix') 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 }; } -- cgit v1.2.3