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;
glow = enabled;
gpg = enabled;
hyfetch = enabled;
journalctl = enabled;
neo = 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, ... }:
{
# TODO: Switch to fastfetch
home.packages = with pkgs; [
neofetch
];
lib,
config,
namespace,
pkgs,
...
}:
let
inherit (lib) mkIf;
xdg.configFile."neofetch/config.conf" = {
enable = true;
cfg = config.${namespace}.programs.hyfetch;
in
{
config = mkIf cfg.enable {
# TODO: Switch to fastfetch
home.packages = with pkgs; [
neofetch
];
text = # bash
xdg.configFile."neofetch/config.conf".text = # bash
''
print_info() {
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;
};
};
}