Update fastfetch.nix
This commit is contained in:
parent
7cd67201cf
commit
75525db821
1 changed files with 11 additions and 12 deletions
|
|
@ -13,26 +13,25 @@
|
||||||
nerd-fonts.meslo-lg
|
nerd-fonts.meslo-lg
|
||||||
];
|
];
|
||||||
|
|
||||||
# Create a wrapper script that chooses a random logo
|
# Download your custom image from GitHub
|
||||||
environment.etc."fastfetch/random-logo.sh" = {
|
environment.etc."fastfetch/logo.png".source = pkgs.fetchurl {
|
||||||
text = ''
|
url = "https://raw.githubusercontent.com/ediblerope/nixos-config/main/walls/owventures.png";
|
||||||
#!/bin/sh
|
sha256 = "0000000000000000000000000000000000000000000000000000";
|
||||||
logos=("RavynOS" "PuffOS" "PearOS" "locos" "GNOME" "eweOS" "DarkOS" "BredOS" "AmogOS")
|
|
||||||
random_logo=''${logos[$RANDOM % ''${#logos[@]}]}
|
|
||||||
${pkgs.fastfetch}/bin/fastfetch --config /etc/fastfetch/config.jsonc --logo $random_logo
|
|
||||||
'';
|
|
||||||
mode = "0755";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Create the fastfetch config file with unicode icons
|
# Create the fastfetch config file with custom image
|
||||||
environment.etc."fastfetch/config.jsonc".text = ''
|
environment.etc."fastfetch/config.jsonc".text = ''
|
||||||
{
|
{
|
||||||
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||||
"logo": {
|
"logo": {
|
||||||
"source": "DarkOS",
|
"source": "/etc/fastfetch/logo.png",
|
||||||
|
"type": "kitty-direct",
|
||||||
|
"width": 30,
|
||||||
|
"height": 15,
|
||||||
"padding": {
|
"padding": {
|
||||||
"top": 1,
|
"top": 1,
|
||||||
"left": 2
|
"left": 2,
|
||||||
|
"right": 4
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"display": {
|
"display": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue