added whatever tf changes

This commit is contained in:
2025-05-11 18:34:04 +09:00
parent b7342e6e6a
commit e6328e254b
14 changed files with 424 additions and 344 deletions

View File

@@ -3,6 +3,16 @@ let
alacrittyconf = pkgs.writeText "alacritty.toml" ''
[window]
opacity = 0.85
[scrolling]
history = 25000
multiplier = 5
[font]
normal = { family = "0xProto Nerd Font Mono", style = "Regular" }
bold = { family = "0xProto Nerd Font Mono", style = "Bold" }
italic = { family = "0xProto Nerd Font Mono", style = "Italic" }
size = 12.00
'';
in
pkgs.symlinkJoin {

View File

@@ -3,6 +3,7 @@ let
packages = {
alacritty = pkgs.callPackage ./alacritty {};
bash = pkgs.callPackage ./bash {};
fastfetch = pkgs.callPackage ./fastfetch {};
};
in
{

View File

@@ -0,0 +1,130 @@
{ pkgs, ... }:
let
config_file = pkgs.writeText "fastfetch-config.jsonc" ''
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"height": 24,
},
"modules": [
"title",
"separator",
{
"type": "os",
"key": " OS",
"keyColor": "yellow",
"format": "{2}"
},
{
"type": "os",
"key": "[]",
"keyColor": "yellow",
"format": "{2} {10} {11}"
},
{
"type": "kernel",
"key": "[]",
"keyColor": "yellow",
"format": "{1} {2} {4}"
},
{
"type": "initsystem",
"key": "[󰅕]",
"keyColor": "yellow",
"format": "{1} {3}"
},
{
"type": "packages",
"key": "[󰏖]",
"keyColor": "yellow",
"format": "Nix: {9} Flatpak: {14} All: {1}"
},
{
"type": "shell",
"key": "[]",
"keyColor": "yellow",
"format": "{1} {4}"
},
"break",
{
"type": "wm",
"key": " DE/WM",
"keyColor": "blue"
},
{
"type": "lm",
"key": "[󰍂]",
"keyColor": "blue",
"format": "{1} {2} {3}"
},
{
"type": "wmtheme",
"key": "[]",
"keyColor": "blue"
},
{
"type": "terminal",
"key": "[]",
"keyColor": "blue",
"format": "{5} {6}"
},
{
"type": "editor",
"key": "[󱩽]",
"keyColor": "blue",
"format": "{2} {4} ({1})"
},
"break",
{
"type": "custom",
"key": " PC",
"keyColor": "green"
},
{
"type": "cpu",
"key": "[]",
"keyColor": "green"
},
{
"type": "gpu",
"key": "[󰋩]",
"keyColor": "green"
},
{
"type": "disk",
"key": "[]",
"keyColor": "green"
},
{
"type": "memory",
"key": "[]",
"keyColor": "green"
},
{
"type": "swap",
"key": "[󰓡]",
"keyColor": "green"
},
{
"type": "display",
"key": "[󰍹]",
"keyColor": "green",
},
{
"type": "uptime",
"key": "[󰔛]",
"keyColor": "green",
"format": "{1}d, {2}h, {3}m, {4}s, since {6}"
}
]
}
'';
in
pkgs.symlinkJoin {
name = "fastfetch-wrapped";
paths = with pkgs; [ fastfetch ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/fastfetch --add-flags "-c ${config_file}"
'';
}