config/modules/shared/homeManagerPrograms.nix

68 lines
1.4 KiB
Nix
Raw Normal View History

2025-03-28 21:09:28 -07:00
{
pkgs,
2025-04-21 13:59:29 -07:00
lib,
userSettings,
2025-04-21 13:59:29 -07:00
systemSettings,
2025-03-28 21:09:28 -07:00
...
}: {
2025-04-19 10:35:31 -07:00
nix-index.enable = true;
2025-03-28 21:09:28 -07:00
atuin = {
enable = true;
enableBashIntegration = true;
enableFishIntegration = true;
daemon.enable = true;
};
direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv.enable = true;
};
2025-04-18 15:55:34 -07:00
bat = {
enable = true;
extraPackages = with pkgs.bat-extras; [batdiff batman batgrep batwatch batpipe prettybat];
};
2025-03-28 21:09:28 -07:00
hyfetch = {
enable = true;
settings = {
backend = "fastfetch";
preset = userSettings.sexuality;
2025-03-28 21:09:28 -07:00
mode = "rgb";
light_dark = "dark";
lightness = {
};
color_align = {
mode = "horizontal";
};
};
};
fish = {
enable = true;
plugins = [
{
name = "tide";
inherit (pkgs.fishPlugins.tide) src;
}
2025-04-10 20:48:28 -07:00
{
name = "!!";
inherit (pkgs.fishPlugins.bang-bang) src;
}
2025-03-28 21:09:28 -07:00
];
2025-04-21 13:59:29 -07:00
shellAliases =
{
}
// lib.optionalAttrs (!systemSettings.darwin) {
reboot-windows = "sudo efibootmgr --bootnext 0000; sudo reboot -h now";
};
2025-04-18 15:55:34 -07:00
shellInit = ''
batman --export-env | source
'';
2025-04-30 12:37:35 -07:00
##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
2025-03-28 21:09:28 -07:00
};
home-manager.enable = true;
}