nixos/home/default.nix

62 lines
1.2 KiB
Nix

{
config,
lib,
pkgs,
...
}: {
imports = [
./git/default.nix
./ssh/default.nix
./nushell/default.nix
./zsh/default.nix
./starship/default.nix
./bottom/default.nix
./config/default.nix
./scripts/default.nix
];
stylix.targets = {
bat.enable = true;
fzf.enable = true;
zellij.enable = true;
};
programs = {
bash.enable = true;
carapace.enable = true;
bat = {
enable = true;
config.theme =
if config.stylix.targets.bat.enable
then "base16-stylix"
else "dracula";
};
eza = {
enable = true;
git = true;
icons = true;
enableAliases = true;
extraOptions = ["--octal-permissions"];
};
readline = {
enable = true;
includeSystemConfig = true;
extraConfig = ''
set completion-ignore-case On
'';
};
direnv = {
enable = true;
nix-direnv.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";
};
zellij = {
enable = true;
settings.default_layout = "compact";
};
};
}