Skip to content

Commit

Permalink
feat ✨: ffetch images
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Hang <[email protected]>
  • Loading branch information
Banh-Canh committed Dec 25, 2024
1 parent 57f7568 commit 891997a
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 91 deletions.
57 changes: 35 additions & 22 deletions homeManagerModules/fastfetchConfig.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ let
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"source": "~/.config/fastfetch/asciiArt",
"source": "~/.config/fastfetch/logo",
"type": "file",
"type": "auto",
"padding": {
"top": 0,
"top": 2,
"left": 0
}
},
"height": 12
},
"display": {
"separator": "  "
Expand Down Expand Up @@ -96,33 +97,45 @@ let
]
}
'';
asciiArt = ''
logo = pkgs.writeTextFile {
name = "logo";
text = ''
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⡀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣼⣾⣟⠳⢾⣷⡤⡀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠨⣿⣿⣿⣆⢙⢤⢺⠻⣿⣾⡖⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⣟⣿⣿⣯⣾⣿⣿⣾⣿⡟⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⢿⣿⣿⡟⠟⣿⣿⢏⣿⡟⠀⠀⠀⠀
⠀⠀⠀⠀⢀⣀⣤⣤⣴⢾⠁⢜⣿⣷⣦⠹⡉⠓⠁⠈⡡⣻⣷⣄⡀⠀⠀⠀
⠀⠀⠀⠀⠈⢪⣇⣼⣿⣎⣱⡦⠔⠉⠑⡆⠀⠁⣀⢥⣿⣿⣿⡿⠷⣄⠀⠀
⠀⡀⠀⠀⠀⠀⢹⣿⣿⣿⡏⠀⠀⠀⡠⠀⣴⢊⣡⢿⢟⣿⣾⣷⣀⠹⣦⠀
⡌⡄⠀⠀⠀⠀⠈⣻⣿⣱⡇⢀⠠⠀⠀⢸⣿⣿⣿⣽⣿⣝⢿⣖⢺⡠⣿⡄
⣷⡀⠀⠀⠀⠀⠐⣪⣿⣷⣌⢃⠀⠀⠀⠀⢹⣿⣾⣿⣿⣿⣿⣿⣿⣻⡿⣿
⠸⣧⡀⠀⠀⠠⢮⣿⣿⣶⡿⠁⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⣧⣿
⠀⠈⠻⠶⣤⣤⠾⢿⣿⡿⠃⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⡿⠃
⠀⠀⠀⠀⠀⠀⠀⣈⢻⣃⠀⠀⠀⠀⠀⠀⠀⣴⣾⣿⣿⣿⣿⣿⣉⡉⠀⠀
'';
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀⠀⡀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣼⣾⣟⠳⢾⣷⡤⡀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠨⣿⣿⣿⣆⢙⢤⢺⠻⣿⣾⡖⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⣟⣿⣿⣯⣾⣿⣿⣾⣿⡟⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⢿⣿⣿⡟⠟⣿⣿⢏⣿⡟⠀⠀⠀⠀
⠀⠀⠀⠀⢀⣀⣤⣤⣴⢾⠁⢜⣿⣷⣦⠹⡉⠓⠁⠈⡡⣻⣷⣄⡀⠀⠀⠀
⠀⠀⠀⠀⠈⢪⣇⣼⣿⣎⣱⡦⠔⠉⠑⡆⠀⠁⣀⢥⣿⣿⣿⡿⠷⣄⠀⠀
⠀⡀⠀⠀⠀⠀⢹⣿⣿⣿⡏⠀⠀⠀⡠⠀⣴⢊⣡⢿⢟⣿⣾⣷⣀⠹⣦⠀
⡌⡄⠀⠀⠀⠀⠈⣻⣿⣱⡇⢀⠠⠀⠀⢸⣿⣿⣿⣽⣿⣝⢿⣖⢺⡠⣿⡄
⣷⡀⠀⠀⠀⠀⠐⣪⣿⣷⣌⢃⠀⠀⠀⠀⢹⣿⣾⣿⣿⣿⣿⣿⣿⣻⡿⣿
⠸⣧⡀⠀⠀⠠⢮⣿⣿⣶⡿⠁⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⣧⣿
⠀⠈⠻⠶⣤⣤⠾⢿⣿⡿⠃⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⡿⠃
⠀⠀⠀⠀⠀⠀⠀⣈⢻⣃⠀⠀⠀⠀⠀⠀⠀⣴⣾⣿⣿⣿⣿⣿⣉⡉⠀⠀
'';
};
in
{
config = lib.mkIf cfg.fastfetchConfig.enable {
home = {
packages = [ pkgs.fastfetch ];
packages = [
pkgs.fastfetch
pkgs.imagemagick
];
file.".config/fastfetch/config.jsonc" = {
text = fastfetchConfig;
};
file.".config/fastfetch/asciiArt" = {
text = asciiArt;
file.".config/fastfetch/logo" = {
source = logo;
};
};
programs.zsh = {
shellAliases = {
fastfetch = "echo '' && fastfetch";
neofetch = "fastfetch";
};
};
};
Expand Down
38 changes: 16 additions & 22 deletions profiles/anya/fastfetchConfig.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
{ config, lib, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.customHomeManagerModules;
asciiArt = ''
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢲⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠄⠂⢉⠤⠐⠋⠈⠡⡈⠉⠐⠠⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⢀⡀⢠⣤⠔⠁⢀⠀⠀⠀⠀⠀⠀⠀⠈⢢⠀⠀⠈⠱⡤⣤⠄⣀⠀⠀⠀⠀⠀
⠀⠀⠰⠁⠀⣰⣿⠃⠀⢠⠃⢸⠀⠀⠀⠀⠀⠀⠀⠀⠁⠀⠀⠀⠈⢞⣦⡀⠈⡇⠀⠀⠀
⠀⠀⠀⢇⣠⡿⠁⠀⢀⡃⠀⣈⠀⠀⠀⠀⢰⡀⠀⠀⠀⠀⢢⠰⠀⠀⢺⣧⢰⠀⠀⠀⠀
⠀⠀⠀⠈⣿⠁⡘⠀⡌⡇⠀⡿⠸⠀⠀⠀⠈⡕⡄⠀⠐⡀⠈⠀⢃⠀⠀⠾⠇⠀⠀⠀⠀
⠀⠀⠀⠀⠇⡇⠃⢠⠀⠶⡀⡇⢃⠡⡀⠀⠀⠡⠈⢂⡀⢁⠀⡁⠸⠀⡆⠘⡀⠀⠀⠀⠀
⠀⠀⠀⠸⠀⢸⠀⠘⡜⠀⣑⢴⣀⠑⠯⡂⠄⣀⣣⢀⣈⢺⡜⢣⠀⡆⡇⠀⢣⠀⠀⠀⠀
⠀⠀⠀⠇⠀⢸⠀⡗⣰⡿⡻⠿⡳⡅⠀⠀⠀⠀⠈⡵⠿⠿⡻⣷⡡⡇⡇⠀⢸⣇⠀⠀⠀
⠀⠀⢰⠀⠀⡆⡄⣧⡏⠸⢠⢲⢸⠁⠀⠀⠀⠀⠐⢙⢰⠂⢡⠘⣇⡇⠃⠀⠀⢹⡄⠀⠀
⠀⠀⠟⠀⠀⢰⢁⡇⠇⠰⣀⢁⡜⠀⠀⠀⠀⠀⠀⠘⣀⣁⠌⠀⠃⠰⠀⠀⠀⠈⠰⠀⠀
⠀⡘⠀⠀⠀⠀⢊⣤⠀⠀⠤⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠤⠄⠀⢸⠃⠀⠀⠀⠀⠀⠃⠀
⢠⠁⢀⠀⠀⠀⠈⢿⡀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⠀⠀⢀⠏⠀⠀⠀⠀⠀⠀⠸⠀
⠘⠸⠘⡀⠀⠀⠀⠀⢣⠀⠀⠀⠀⠀⠀⠁⠀⠃⠀⠀⠀⠀⢀⠎⠀⠀⠀⠀⠀⢠⠀⠀⡇
⠀⠇⢆⢃⠀⠀⠀⠀⠀⡏⢲⢤⢀⡀⠀⠀⠀⠀⠀⢀⣠⠄⡚⠀⠀⠀⠀⠀⠀⣾⠀⠀⠀
⢰⠈⢌⢎⢆⠀⠀⠀⠀⠁⣌⠆⡰⡁⠉⠉⠀⠉⠁⡱⡘⡼⠇⠀⠀⠀⠀⢀⢬⠃⢠⠀⡆
'';
logo =
let
image = pkgs.fetchurl {
url = "https://i.imgur.com/bZErzRg.jpeg";
sha256 = "sha256-Q/kcNUUxjEs6mO1M/2GRB0jjfkMbs5xra9nHIdlMw+A=";
};
in
"${image}";
in
{
config = lib.mkIf cfg.fastfetchConfig.enable {
home.file.".config/fastfetch/asciiArt" = {
text = lib.mkForce asciiArt;
home.file.".config/fastfetch/logo" = {
source = lib.mkForce logo;
};
};
}
60 changes: 34 additions & 26 deletions profiles/nishinoya/fastfetchConfig.nix
Original file line number Diff line number Diff line change
@@ -1,34 +1,42 @@
{ config, lib, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.customHomeManagerModules;
asciiArt = ''
⠀⠀⠐⣄⠀⠀⢰⣿⣿⣿⣴⠏⠘⢠⢻⢯⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠈⣶⣄⡈⣿⣿⣿⡟⠀⠆⠃⢸⣿⣿⣿⣿⡿⢟⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣧⠘⣦⡄⢸⠻⠿⣛⣵⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⣾⡇⢧⣮⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⢸⣿⣿⣿⡿⢻⢿⣿⠏⢀⡼⣿⠿⠿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⢀⣿⡿⠁⠀⣾⣞⡏⠀⣾⠁⠀⠀⠀⠀⠐⠛⠉⠾⠿⠿⣿⣟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⠈⣿⡁⠀⠀⣿⣼⠀⢰⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⠀⡏⢹⡆⠀⣟⣹⢠⢸⠙⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⠀⣧⣌⣿⡀⢸⣻⣾⡟⠀⠈⠀⠀⠀⣀⣀⣀⣀⡀⠀⠀⠀⢠⠀⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⠀⣿⣿⣿⡇⠀⢻⡟⠁⣠⣴⠾⠟⠛⠋⠉⠉⠀⠀⠀⠀⠀⠘⠂⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⠀⣿⣿⠻⡇⠀⠀⠧⠀⢀⣴⣶⣦⣤⣤⣤⣀⠀⠀⠀⠀⠀⠀⠄⣸⣿⣿⣿⣿⡿⠿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⢸⠉⢇⣠⠇⠈⡆⠀⠀⢸⡿⠻⣿⠷⠆⠀⠨⠍⣷⢀⠄⠀⠀⠀⢹⣿⣿⠟⢁⣠⠄⣻⣿⣿⣿⣟
⠀⠀⠀⢀⣾⠀⡠⠎⠀⠀⠉⠀⠀⠈⠳⡀⠙⠃⠀⠀⣠⣾⡿⠊⠀⠀⠀⢀⣿⡿⢁⣴⡟⠁⢀⣿⣿⠿⣿⠋
⠀⠀⡰⠋⢹⠀⢇⠀⠀⠀⠀⠀⠀⠀⠀⠈⠑⠒⠒⠋⠉⠁⠀⠀⠀⠀⠀⣼⡟⠁⢈⣿⡅⢀⣼⡿⡟⠧⣿⠀
⠀⡼⠁⠀⠸⡇⠈⣷⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⠟⢀⡠⠿⠁⡠⠚⣿⣿⠇⠀⣿⠀
⢸⡇⠀⠀⠀⢻⡄⢤⡉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠠⠋⣀⡴⠋⠀⢰⣿⡿⠀⢠⡏⠀
⠀⢿⡄⠀⠀⠀⠳⡀⠙⣶⣦⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠴⠟⠉⣹⠁⠀⣠⣿⣿⠃⠀⣸⠁⠀
⠀⠘⣿⣄⠀⠀⠀⠹⡀⠓⠦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⠞⠁⠀⠀⠰⠃⢀⣴⣿⣿⡏⠀⢠⡟⠀⠀
⠀⠀⢱⠈⢣⡀⠀⠀⢣⡀⠀⠀⠀⢀⣀⣀⣠⣤⣴⣶⠿⠟⠋⠁⠀⠀⠀⠀⣀⣴⣿⣿⣿⡟⢠⢀⣿⠁⠀⠀
⠀⠀⠈⣇⠀⠹⣦⡀⠀⠈⠉⠉⠙⢿⡟⡽⠃⢹⣿⣟⠦⢄⠀⠀⢀⣠⣴⣾⠿⠻⢿⣿⡟⠀⠀⣼⠇⠀⠀⠀
⠀⠀⠘⡍⢧⠀⠙⢿⣦⣀⠀⠀⢀⡞⣿⣄⠀⠀⠙⠿⣿⣦⣤⣶⡿⠟⠉⠀⠀⠀⠘⡎⢳⠐⠚⠛⠀⠀⠀⠀
'';
logo = pkgs.writeTextFile {
name = "logo";
text = ''
⠀⠀⠐⣄⠀⠀⢰⣿⣿⣿⣴⠏⠘⢠⢻⢯⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠈⣶⣄⡈⣿⣿⣿⡟⠀⠆⠃⢸⣿⣿⣿⣿⡿⢟⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣧⠘⣦⡄⢸⠻⠿⣛⣵⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣿⣿⣾⡇⢧⣮⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⢸⣿⣿⣿⡿⢻⢿⣿⠏⢀⡼⣿⠿⠿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⢀⣿⡿⠁⠀⣾⣞⡏⠀⣾⠁⠀⠀⠀⠀⠐⠛⠉⠾⠿⠿⣿⣟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⠈⣿⡁⠀⠀⣿⣼⠀⢰⣿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⠀⡏⢹⡆⠀⣟⣹⢠⢸⠙⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⠀⣧⣌⣿⡀⢸⣻⣾⡟⠀⠈⠀⠀⠀⣀⣀⣀⣀⡀⠀⠀⠀⢠⠀⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⠀⣿⣿⣿⡇⠀⢻⡟⠁⣠⣴⠾⠟⠛⠋⠉⠉⠀⠀⠀⠀⠀⠘⠂⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⠀⣿⣿⠻⡇⠀⠀⠧⠀⢀⣴⣶⣦⣤⣤⣤⣀⠀⠀⠀⠀⠀⠀⠄⣸⣿⣿⣿⣿⡿⠿⣿⣿⣿⣿⣿
⠀⠀⠀⠀⢸⠉⢇⣠⠇⠈⡆⠀⠀⢸⡿⠻⣿⠷⠆⠀⠨⠍⣷⢀⠄⠀⠀⠀⢹⣿⣿⠟⢁⣠⠄⣻⣿⣿⣿⣟
⠀⠀⠀⢀⣾⠀⡠⠎⠀⠀⠉⠀⠀⠈⠳⡀⠙⠃⠀⠀⣠⣾⡿⠊⠀⠀⠀⢀⣿⡿⢁⣴⡟⠁⢀⣿⣿⠿⣿⠋
⠀⠀⡰⠋⢹⠀⢇⠀⠀⠀⠀⠀⠀⠀⠀⠈⠑⠒⠒⠋⠉⠁⠀⠀⠀⠀⠀⣼⡟⠁⢈⣿⡅⢀⣼⡿⡟⠧⣿⠀
⠀⡼⠁⠀⠸⡇⠈⣷⣤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⠟⢀⡠⠿⠁⡠⠚⣿⣿⠇⠀⣿⠀
⢸⡇⠀⠀⠀⢻⡄⢤⡉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠠⠋⣀⡴⠋⠀⢰⣿⡿⠀⢠⡏⠀
⠀⢿⡄⠀⠀⠀⠳⡀⠙⣶⣦⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠴⠟⠉⣹⠁⠀⣠⣿⣿⠃⠀⣸⠁⠀
⠀⠘⣿⣄⠀⠀⠀⠹⡀⠓⠦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⠞⠁⠀⠀⠰⠃⢀⣴⣿⣿⡏⠀⢠⡟⠀⠀
⠀⠀⢱⠈⢣⡀⠀⠀⢣⡀⠀⠀⠀⢀⣀⣀⣠⣤⣴⣶⠿⠟⠋⠁⠀⠀⠀⠀⣀⣴⣿⣿⣿⡟⢠⢀⣿⠁⠀⠀
⠀⠀⠈⣇⠀⠹⣦⡀⠀⠈⠉⠉⠙⢿⡟⡽⠃⢹⣿⣟⠦⢄⠀⠀⢀⣠⣴⣾⠿⠻⢿⣿⡟⠀⠀⣼⠇⠀⠀⠀
⠀⠀⠘⡍⢧⠀⠙⢿⣦⣀⠀⠀⢀⡞⣿⣄⠀⠀⠙⠿⣿⣦⣤⣶⡿⠟⠉⠀⠀⠀⠘⡎⢳⠐⠚⠛⠀⠀⠀⠀
'';
};
in
{
config = lib.mkIf cfg.fastfetchConfig.enable {
home.file.".config/fastfetch/asciiArt" = {
text = lib.mkForce asciiArt;
home.file.".config/fastfetch/logo" = {
source = lib.mkForce logo;
};
};
}
39 changes: 18 additions & 21 deletions profiles/totoro/fastfetchConfig.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
{ config, lib, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.customHomeManagerModules;
asciiArt = ''
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⣿⡄⠀⠀⠀⠀⠀⠀⠀⣠⣄⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⣿⡇⠀⠀⠀⠀⠀⠀⢰⣿⣿⡄⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⣿⣿⣿⡇⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢘⣿⣿⣿⣯⣤⣤⣤⣀⣀⣸⣿⣿⣿⡇⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⡿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⡏⢠⡦⠈⣿⣿⣿⣿⣿⣿⠟⠛⢻⣷⡄⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⡀⠀⠀⠀⠀⠀⠀⢠⣿⣿⣿⣦⣤⣾⣿⣿⣿⣿⣿⣿⠀⠿⢀⣿⣷⠄⠀⠀⠀
⢠⣄⠀⠀⠀⣼⣿⡆⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣿⣿⣿⡇⠀⠀⠀
⢸⣿⣷⣄⢀⣿⣿⣿⠀⠀⠀⢀⣿⣿⣿⠿⠋⠉⠁⠀⠀⠈⠉⠉⠻⢿⣿⣿⣿⣿⣿⣷⠀⠀⠀
⠀⣿⣿⠿⣿⣿⡿⣛⢷⠀⠀⢸⣿⣿⠏⢀⣤⣄⠀⣠⣤⡄⠀⠀⠀⠀⢻⣿⣿⣿⣿⣿⣦⣄⠀
⠀⣿⣇⣀⣽⣿⣷⣤⣾⣧⠀⠘⣿⠏⠀⠛⠋⠙⠀⠛⠙⠛⠀⠾⠿⣷⢸⣿⣿⣿⣿⣿⣿⣿⡇
⢠⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆⠀⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⡿⣿⣿⣿⣿⣿⡇
⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⠀⠐⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⡿⠁
⠀⢻⣿⣿⣿⣿⣿⣿⣿⡟⠀⠀⠀⠈⠢⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⣿⣿⡿⠋⠀⠀
⠀⠀⠉⠛⠛⠛⠛⠛⠛⠁⠀⠀⠀⠀⠀⠘⠻⢲⠦⠤⠤⠀⠀⠀⠀⣤⢴⡿⠟⠁⠀⠀⠀⠀⠀
'';
logo =
let
image = pkgs.fetchurl {
url = "https://i.imgur.com/xCusJ6d.jpeg";
sha256 = "sha256-VSOsCTiZP9IEMN69qmhxs4obRVNxpbLf0zUOzz2vjoQ=";
};
in
"${image}";
in
{
config = lib.mkIf cfg.fastfetchConfig.enable {
home.file.".config/fastfetch/asciiArt" = {
text = lib.mkForce asciiArt;
home = {
file.".config/fastfetch/logo" = {
source = lib.mkForce logo;
};
};
};
}

0 comments on commit 891997a

Please sign in to comment.