Add custom fetch (#13)
* Remove vesktop electron override * Add custom fetch
This commit is contained in:
parent
e4d521e10f
commit
711c2a128f
3 changed files with 68 additions and 0 deletions
BIN
assets/logo2.png
Normal file
BIN
assets/logo2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
|
|
@ -7,6 +7,7 @@
|
||||||
./coding.nix
|
./coding.nix
|
||||||
./containers.nix
|
./containers.nix
|
||||||
./drives.nix
|
./drives.nix
|
||||||
|
./fastfetch.nix
|
||||||
./fish.nix
|
./fish.nix
|
||||||
./flatpak.nix
|
./flatpak.nix
|
||||||
./gaming.nix
|
./gaming.nix
|
||||||
|
|
|
||||||
67
modules/programs/fastfetch.nix
Normal file
67
modules/programs/fastfetch.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
options,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options.mods = {
|
||||||
|
dashfetch = lib.mkOption {
|
||||||
|
default = true;
|
||||||
|
example = false;
|
||||||
|
type = lib.types.bool;
|
||||||
|
description = "A custom configuration for fastfetch";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.optionalAttrs (options ? home.packages) {
|
||||||
|
xdg.configFile."fastfetch/config.jsonc" = lib.mkIf (config.mods.dashfetch) {
|
||||||
|
source = (pkgs.formats.json {}).generate "config.jsonc" {
|
||||||
|
"$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json";
|
||||||
|
logo = {
|
||||||
|
type = "kitty";
|
||||||
|
source = ../../assets/logo2.png;
|
||||||
|
width = 35;
|
||||||
|
padding = {
|
||||||
|
top = 2;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
modules = [
|
||||||
|
"title"
|
||||||
|
"separator"
|
||||||
|
{
|
||||||
|
type = "os";
|
||||||
|
key = "OS";
|
||||||
|
format = "DashNix ({name} {version})";
|
||||||
|
}
|
||||||
|
"host"
|
||||||
|
"kernel"
|
||||||
|
"uptime"
|
||||||
|
"packages"
|
||||||
|
"shell"
|
||||||
|
"display"
|
||||||
|
"de"
|
||||||
|
"wm"
|
||||||
|
"wmtheme"
|
||||||
|
"theme"
|
||||||
|
"icons"
|
||||||
|
"font"
|
||||||
|
"cursor"
|
||||||
|
"terminal"
|
||||||
|
"terminalfont"
|
||||||
|
"cpu"
|
||||||
|
"gpu"
|
||||||
|
"memory"
|
||||||
|
"swap"
|
||||||
|
"disk"
|
||||||
|
"localip"
|
||||||
|
"battery"
|
||||||
|
"poweradapter"
|
||||||
|
"locale"
|
||||||
|
"break"
|
||||||
|
"colors"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue