Simplify fastfetch config using a with statement

This commit is contained in:
Bun 2025-05-15 09:56:39 -04:00
parent 3978369995
commit 9c409cc91a

View file

@ -4,7 +4,7 @@
programs.fastfetch = {
enable = true;
settings = {
settings = with builtins; {
logo = {
source = "xenia";
color = {
@ -15,14 +15,14 @@
};
display = {
separator = builtins.fromJSON ''" \u001b[33m "'';
separator = fromJSON ''" \u001b[33m "'';
color = "red";
};
modules = [
{
type = "custom";
format = builtins.fromJSON ''"\u001b[1m"'';
format = fromJSON ''"\u001b[1m"'';
}
{
type = "host";
@ -54,7 +54,7 @@
{
type = "custom";
format = builtins.fromJSON ''"\u001b[1m"'';
format = fromJSON ''"\u001b[1m"'';
}
{
type = "os";
@ -94,11 +94,11 @@
{
type = "custom";
format = builtins.fromJSON ''"\u001b[1m"'';
format = fromJSON ''"\u001b[1m"'';
}
{
type = "custom";
format = builtins.fromJSON ''"\u001b[90m󰮯 \u001b[31m󰊠 \u001b[32m󰊠 \u001b[33m󰊠 \u001b[34m󰊠 \u001b[35m󰊠 \u001b[36m󰊠 \u001b[37m󰊠"'';
format = fromJSON ''"\u001b[90m󰮯 \u001b[31m󰊠 \u001b[32m󰊠 \u001b[33m󰊠 \u001b[34m󰊠 \u001b[35m󰊠 \u001b[36m󰊠 \u001b[37m󰊠"'';
}
];
};