This repository has been archived on 2024-07-03. You can view files and clone it, but cannot push or open issues or pull requests.
home-manager/programs/shell/default.nix

61 lines
1.2 KiB
Nix
Raw Normal View History

{
lib,
pkgs,
catppuccinVariant ? "Mocha",
...
}: {
2024-05-11 17:30:56 +01:00
imports = [
./bottom.nix
./fastfetch.nix
2024-05-11 17:30:56 +01:00
./git.nix
./ssh.nix
./starship.nix
./zsh.nix
];
home.packages = with pkgs; [
rclone
git-sync
du-dust
2024-05-11 17:30:56 +01:00
];
programs = {
bash.enable = true;
bat = {
enable = true;
2024-05-29 07:13:46 +01:00
config = {
theme = "catppuccin${catppuccinVariant}";
2024-05-29 07:13:46 +01:00
style = "plain,numbers,changes";
};
};
eza = {
enable = true;
git = true;
icons = true;
extraOptions = ["--octal-permissions"];
};
direnv = {
enable = true;
nix-direnv.enable = true;
};
fd.enable = true;
fzf = {
enable = true;
defaultCommand = "${pkgs.fd}/bin/fd --type f";
changeDirWidgetCommand = "${pkgs.fd}/bin/fd --type d";
fileWidgetCommand = "${pkgs.fd}/bin/fd --type f";
};
jq.enable = true;
ripgrep.enable = true;
};
xdg.configFile = let
variants = ["Latte" "Frappe" "Macchiato" "Mocha"];
mkVariant = variant: let
fname = "catppuccin${variant}.tmTheme";
in {
name = "bat/themes/${fname}";
value = {source = ./. + "/${fname}";};
};
in
builtins.listToAttrs
(lib.lists.forEach variants mkVariant);
}