Update fastfetch.nix

This commit is contained in:
ediblerope 2025-12-03 21:23:04 +00:00 committed by GitHub
parent 888debf9a6
commit ef11592f81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,17 +14,15 @@
]; ];
# Create a wrapper script that chooses a random logo # Create a wrapper script that chooses a random logo
environment.etc."fastfetch/random-logo.sh".text = '' environment.etc."fastfetch/random-logo.sh" = {
#!/bin/sh text = ''
logos=("RavynOS" "PuffOS" "PearOS" "locos" "GNOME" "eweOS" "DarkOS" "BredOS" "AmogOS") #!/bin/sh
random_logo=''${logos[$RANDOM % ''${#logos[@]}]} logos=("RavynOS" "PuffOS" "PearOS" "locos" "GNOME" "eweOS" "DarkOS" "BredOS" "AmogOS")
${pkgs.fastfetch}/bin/fastfetch --config /etc/fastfetch/config.jsonc --logo $random_logo random_logo=''${logos[$RANDOM % ''${#logos[@]}]}
''; ${pkgs.fastfetch}/bin/fastfetch --config /etc/fastfetch/config.jsonc --logo $random_logo
'';
# Make the script executable mode = "0755";
system.activationScripts.fastfetchScript = '' };
chmod +x /etc/fastfetch/random-logo.sh
'';
# Create the fastfetch config file with unicode icons # Create the fastfetch config file with unicode icons
environment.etc."fastfetch/config.jsonc".text = '' environment.etc."fastfetch/config.jsonc".text = ''