Update fastfetch.nix

This commit is contained in:
ediblerope 2025-12-21 20:39:28 +00:00 committed by GitHub
parent 85a738a2d8
commit ff4387fc95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,6 +10,15 @@
nerd-fonts.jetbrains-mono
nerd-fonts.meslo-lg
];
# Create a script for the fastfetch command
environment.etc."fastfetch/custom-info.sh" = {
text = ''
#!/bin/sh
echo $(hostname)@NixOS_Unstable - $(uname) $(uname -r) - $(gnome-shell --version 2>/dev/null | awk '{print $1, $3}')
'';
mode = "0755";
};
# Create the fastfetch config file with custom image
environment.etc."fastfetch/config.jsonc".text = ''
{
@ -30,7 +39,7 @@
"modules": [
{
"type": "command",
"text": "echo $(whoami)@$(hostname) $(uname -r)"
"text": "/etc/fastfetch/custom-info.sh"
},
{
"type": "colors",