punkfairie
ceb4bf3cde
Instead of having separate folders for each program with a default.nix inside, moved modules into programs/services/xorg respectively. Xdg was moved to the root home folder as it makes the most sense there.
69 lines
1.1 KiB
Nix
69 lines
1.1 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
programs.bat = {
|
|
enable = true;
|
|
|
|
extraPackages = with pkgs.bat-extras; [
|
|
batdiff
|
|
batman
|
|
];
|
|
|
|
rose-pine.enable = true;
|
|
|
|
config = {
|
|
style = "auto";
|
|
};
|
|
};
|
|
|
|
home.sessionVariables = lib.mkIf config.home.preferXdgDirectories {
|
|
BATDIFF_USE_DELTA = "true";
|
|
};
|
|
|
|
programs.fish = lib.mkIf config.programs.fish.enable {
|
|
functions = {
|
|
cat = {
|
|
wraps = "bat";
|
|
body = # fish
|
|
"bat $argv";
|
|
};
|
|
|
|
cath = {
|
|
wraps = "bat";
|
|
body = # fish
|
|
"bat --plain --language=help $argv";
|
|
};
|
|
};
|
|
|
|
shellAbbrs = {
|
|
B = {
|
|
position = "anywhere";
|
|
setCursor = true;
|
|
expansion = # fish
|
|
"% | bat";
|
|
};
|
|
|
|
"-h" = {
|
|
position = "anywhere";
|
|
expansion = # fish
|
|
"-h | cath";
|
|
};
|
|
|
|
"--help" = {
|
|
position = "anywhere";
|
|
expansion = # fish
|
|
"--help | cath";
|
|
};
|
|
|
|
help = {
|
|
position = "anywhere";
|
|
expansion = # fish
|
|
"help | cath";
|
|
};
|
|
};
|
|
};
|
|
}
|