67 lines
1.4 KiB
Nix
67 lines
1.4 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
userSettings,
|
|
systemSettings,
|
|
...
|
|
}: {
|
|
nix-index.enable = true;
|
|
atuin = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
enableFishIntegration = true;
|
|
daemon.enable = true;
|
|
};
|
|
|
|
direnv = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
nix-direnv.enable = true;
|
|
};
|
|
|
|
bat = {
|
|
enable = true;
|
|
extraPackages = with pkgs.bat-extras; [batdiff batman batgrep batwatch batpipe prettybat];
|
|
};
|
|
|
|
hyfetch = {
|
|
enable = true;
|
|
settings = {
|
|
backend = "fastfetch";
|
|
preset = userSettings.sexuality;
|
|
mode = "rgb";
|
|
light_dark = "dark";
|
|
lightness = {
|
|
};
|
|
color_align = {
|
|
mode = "horizontal";
|
|
};
|
|
};
|
|
};
|
|
|
|
fish = {
|
|
enable = true;
|
|
|
|
plugins = [
|
|
{
|
|
name = "tide";
|
|
inherit (pkgs.fishPlugins.tide) src;
|
|
}
|
|
{
|
|
name = "!!";
|
|
inherit (pkgs.fishPlugins.bang-bang) src;
|
|
}
|
|
];
|
|
shellAliases =
|
|
{
|
|
}
|
|
// lib.optionalAttrs (!systemSettings.darwin) {
|
|
reboot-windows = "sudo efibootmgr --bootnext 0000; sudo reboot -h now";
|
|
};
|
|
shellInit = ''
|
|
batman --export-env | source
|
|
'';
|
|
##test -r '/Users/${userSettings.username}/.opam/opam-init/init.fish' && source '/Users/${userSettings.username}/.opam/opam-init/init.fish' > /dev/null 2> /dev/null; or true
|
|
};
|
|
home-manager.enable = true;
|
|
}
|