feat(home): Hyfetch & Neofetch

This commit is contained in:
punkfairie 2024-11-16 17:31:46 -08:00
parent fe80ace7db
commit 8600d0d0a7
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
4 changed files with 56 additions and 31 deletions

View file

@ -28,6 +28,7 @@ in
git = enabled; git = enabled;
glow = enabled; glow = enabled;
gpg = enabled; gpg = enabled;
hyfetch = enabled;
journalctl = enabled; journalctl = enabled;
neo = enabled; neo = enabled;
systemctl = enabled; systemctl = enabled;

View file

@ -0,0 +1,38 @@
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule;
cfg = config.${namespace}.programs.hyfetch;
in
{
options = mkEnableModule "programs.hyfetch";
config = mkIf cfg.enable {
programs.hyfetch = {
enable = true;
settings = {
preset = "lesbian";
mode = "rgb";
light_dark = "dark";
lightness = 0.7;
color_align = {
mode = "horizontal";
custom_colors = [ ];
fore_back = null;
};
backend = "neofetch";
args = null;
distro = null;
pride_month_shown = [ ];
pride_month_disable = false;
};
};
};
}

View file

@ -1,14 +1,23 @@
{ pkgs, ... }:
{ {
lib,
config,
namespace,
pkgs,
...
}:
let
inherit (lib) mkIf;
cfg = config.${namespace}.programs.hyfetch;
in
{
config = mkIf cfg.enable {
# TODO: Switch to fastfetch # TODO: Switch to fastfetch
home.packages = with pkgs; [ home.packages = with pkgs; [
neofetch neofetch
]; ];
xdg.configFile."neofetch/config.conf" = { xdg.configFile."neofetch/config.conf".text = # bash
enable = true;
text = # bash
'' ''
print_info() { print_info() {
prin " " prin " "

View file

@ -1,23 +0,0 @@
{ ... }:
{
programs.hyfetch = {
enable = true;
settings = {
preset = "lesbian";
mode = "rgb";
light_dark = "dark";
lightness = 0.7;
color_align = {
mode = "horizontal";
custom_colors = [ ];
fore_back = null;
};
backend = "neofetch";
args = null;
distro = null;
pride_month_shown = [ ];
pride_month_disable = false;
};
};
}