1 2 3 4 5 6 7 8 9 10 11 12 13
{ config, lib, ... }: { options = { bash.enable = lib.mkEnableOption "Enables bash."; }; config = lib.mkIf config.bash.enable { programs.bash.enable = true; programs.bash.historyFile = "${config.xdg.cacheHome}/bash/history"; home.file."${config.xdg.cacheHome}/bash/histroy".text = ""; # Create the cache directory and histroy file }; }