mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-10-05 11:18:24 +02:00
93 lines
2.5 KiB
Nix
93 lines
2.5 KiB
Nix
# Elio is a TUI file explorer
|
|
{
|
|
pkgs,
|
|
config,
|
|
inputs,
|
|
...
|
|
}: let
|
|
c = config.lib.stylix.colors;
|
|
in {
|
|
home.packages = [
|
|
inputs.elio.packages.${pkgs.stdenv.hostPlatform.system}.elio
|
|
pkgs.poppler-utils # PDF previews
|
|
pkgs.ffmpeg # media metadata and thumbnails
|
|
pkgs.resvg # SVG previews
|
|
];
|
|
|
|
xdg.desktopEntries.elio = {
|
|
name = "elio";
|
|
exec = "${pkgs.ghostty}/bin/ghostty +new-window -e ${inputs.elio.packages.${pkgs.stdenv.hostPlatform.system}.elio}/bin/elio %f";
|
|
terminal = false;
|
|
icon = "elio";
|
|
mimeType = ["inode/directory"];
|
|
categories = ["System" "FileManager" "FileTools" "ConsoleOnly"];
|
|
};
|
|
|
|
xdg.configFile."elio/config.toml".text = ''
|
|
[places]
|
|
show_devices = false
|
|
entries = [
|
|
"home",
|
|
"documents",
|
|
"downloads",
|
|
"pictures",
|
|
{ title = "Notes", path = "~/Notes" },
|
|
{ title = "Cyber", path = "~/Cyber" },
|
|
{ title = "Projects", path = "~/Projects" },
|
|
{ title = "NixOS Config", path = "~/.config/nixos" },
|
|
"trash",
|
|
]
|
|
'';
|
|
|
|
xdg.configFile."elio/theme.toml".text = ''
|
|
[palette]
|
|
bg = "#${c.base00}"
|
|
chrome = "#${c.base01}"
|
|
chrome_alt = "#${c.base01}"
|
|
chip_text = "#${c.base00}"
|
|
panel = "#${c.base00}"
|
|
panel_alt = "#${c.base00}"
|
|
surface = "#${c.base02}"
|
|
elevated = "#${c.base02}"
|
|
border = "#${c.base03}"
|
|
text = "#${c.base05}"
|
|
muted = "#${c.base04}"
|
|
accent = "#${c.base0D}"
|
|
accent_soft = "#${c.base02}"
|
|
accent_text = "#${c.base06}"
|
|
selected_bg = "#${c.base02}"
|
|
selected_border = "#${c.base0D}"
|
|
selection_bar = "#${c.base09}"
|
|
yank_bar = "#${c.base0B}"
|
|
cut_bar = "#${c.base08}"
|
|
progress_bar = "#${c.base0D}"
|
|
grid_selection_band = "#${c.base02}"
|
|
grid_yank_band = "#${c.base01}"
|
|
grid_cut_band = "#${c.base01}"
|
|
sidebar_active = "#${c.base02}"
|
|
button_bg = "#${c.base01}"
|
|
button_disabled_bg = "#${c.base01}"
|
|
path_bg = "#${c.base00}"
|
|
|
|
[preview.code]
|
|
fg = "#${c.base05}"
|
|
bg = "#${c.base01}"
|
|
selection_bg = "#${c.base02}"
|
|
selection_fg = "#${c.base06}"
|
|
caret = "#${c.base0C}"
|
|
line_highlight = "#${c.base01}"
|
|
line_number = "#${c.base03}"
|
|
comment = "#${c.base03}"
|
|
string = "#${c.base0B}"
|
|
constant = "#${c.base09}"
|
|
keyword = "#${c.base0E}"
|
|
function = "#${c.base0D}"
|
|
type = "#${c.base0A}"
|
|
parameter = "#${c.base08}"
|
|
tag = "#${c.base0C}"
|
|
operator = "#${c.base0C}"
|
|
macro = "#${c.base0F}"
|
|
invalid = "#${c.base08}"
|
|
'';
|
|
}
|