refactor(infinidoge): move neofetch config into file
This commit is contained in:
parent
baa03d7498
commit
844418747f
2 changed files with 57 additions and 56 deletions
|
@ -10,63 +10,16 @@ with lib;
|
|||
'';
|
||||
};
|
||||
|
||||
"neofetch/config.conf".text =
|
||||
let
|
||||
image = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/nixos.png";
|
||||
sha256 = "007q947q2a5c8z9r6cc6mj3idq0ss9zsi9xvij8l8chkjnh8fwn2";
|
||||
};
|
||||
in
|
||||
''
|
||||
print_info() {
|
||||
info title
|
||||
info underline
|
||||
"neofetch/config.conf".source = pkgs.substituteAll {
|
||||
src = ./neofetch.conf;
|
||||
|
||||
info "$(color 7)OS" distro
|
||||
info "$(color 15)├─$(color 6) Kernel" kernel
|
||||
info "$(color 15)├─$(color 6) Uptime" uptime
|
||||
info "$(color 15)└─$(color 6) Packages" packages
|
||||
|
||||
prin
|
||||
prin "$(color 7)PC" "${if main.info.model != "" then main.info.model else "A Computer"}"
|
||||
info "$(color 15)├─$(color 6) CPU" cpu
|
||||
info "$(color 15)├─$(color 6) GPU" gpu
|
||||
info "$(color 15)├─$(color 6) Battery" battery
|
||||
info "$(color 15)├─$(color 6) Resolution" resolution
|
||||
info "$(color 15)└─$(color 6) Memory" memory
|
||||
|
||||
${ if main.info.graphical then ''
|
||||
prin
|
||||
prin "$(color 15)WM" ${main.info.env.wm}
|
||||
'' else "" }
|
||||
|
||||
prin
|
||||
info "$(color 15)Terminal" term
|
||||
info "$(color 15)└─$(color 6) Shell" shell
|
||||
|
||||
prin
|
||||
prin "$(color 15)Disks"
|
||||
info disk
|
||||
|
||||
info cols
|
||||
}
|
||||
|
||||
kernel_shorthand="off"
|
||||
uptime_shorthand="off"
|
||||
memory_percent="on"
|
||||
memory_unit="gib"
|
||||
separator=" ➜"
|
||||
color_blocks="off"
|
||||
|
||||
# Disk
|
||||
disk_show=('/' '/media/main' '/media/data')
|
||||
|
||||
# Image
|
||||
image_backend="kitty"
|
||||
image_source="${image}"
|
||||
crop_mode="none"
|
||||
image_size="470px"
|
||||
'';
|
||||
image = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/TheDarkBug/uwufetch/main/res/nixos.png";
|
||||
sha256 = "007q947q2a5c8z9r6cc6mj3idq0ss9zsi9xvij8l8chkjnh8fwn2";
|
||||
};
|
||||
inherit (main.info) model;
|
||||
inherit (main.info.env) wm;
|
||||
};
|
||||
} // optionalAttrs main.info.graphical {
|
||||
"qtile".source = pkgs.substituteSubset {
|
||||
src = ./qtile;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue