feat(homeModules/cli): add hyfetch
This commit is contained in:
parent
0f28fb7d70
commit
55551cfbb9
3 changed files with 33 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
cli.editor = "nvf";
|
||||
cli.file-browser = "yazi";
|
||||
cli.multiplexer = "zellij";
|
||||
cli.fetch = "hyfetch";
|
||||
cli.git.name = "Mohammad Rafiq";
|
||||
cli.git.email = "rafiq@rrv.sh";
|
||||
cli.git.defaultBranch = "prime";
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
editor = lib.pantheon.mkStrOption;
|
||||
file-browser = lib.pantheon.mkStrOption;
|
||||
multiplexer = lib.pantheon.mkStrOption;
|
||||
fetch = lib.pantheon.mkStrOption;
|
||||
git = {
|
||||
name = lib.pantheon.mkStrOption;
|
||||
email = lib.pantheon.mkStrOption;
|
||||
|
|
31
modules/home/cli/fetch/default.nix
Normal file
31
modules/home/cli/fetch/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf (config.cli.fetch == "hyfetch") {
|
||||
home.packages = [ pkgs.fastfetch ];
|
||||
home.sessionVariables.FETCH = "hyfetch";
|
||||
home.shellAliases.fetch = "hyfetch";
|
||||
programs.hyfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
preset = "bisexual";
|
||||
mode = "rgb";
|
||||
light_dark = "dark";
|
||||
lightness = 0.5;
|
||||
color_align = {
|
||||
mode = "horizontal";
|
||||
custom_colors = [ ];
|
||||
fore_back = null;
|
||||
};
|
||||
backend = "fastfetch";
|
||||
};
|
||||
};
|
||||
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue