split waybar into multiple files

This commit is contained in:
Lucy Hochkamp 2025-10-06 21:29:04 +02:00
parent 53c7532351
commit 7cff7f09c3
No known key found for this signature in database
29 changed files with 953 additions and 617 deletions

View file

@ -24,6 +24,7 @@ in
xyno.cli.fish.enable = true;
xyno.cli.starship.enable = true;
xyno.cli.tmux.enable = true;
security.sudo.enable = false;
i18n.defaultLocale = "en_US.UTF-8";
@ -71,10 +72,32 @@ in
# https://github.com/NixOS/nixpkgs/issues/361592 needed for run0
security.pam.services.systemd-run0 = { };
programs.tmux.enable = true;
programs.yazi = {
enable = true;
initLua = pkgs.writeText "yazi-init.lua" ''
function Linemode:size_and_mtime()
local time = math.floor(self._file.cha.mtime or 0)
if time == 0 then
time = ""
elseif os.date("%Y", time) == os.date("%Y") then
time = os.date("%b %d %H:%M", time)
else
time = os.date("%b %d %Y", time)
end
local size = self._file:size()
return string.format("%s %s", size and ya.readable_size(size) or "-", time)
end
'';
settings.yazi = {
mgr = {
sort_by = "mtime";
linemode = "size_and_mtime";
sort_reverse = true;
sort_dir_first = true;
};
};
};
services.pcscd.enable = true;
@ -92,6 +115,7 @@ in
bottom
curl
croc
comma
dig
fd
ffmpeg
@ -110,7 +134,8 @@ in
pv
ripgrep
w3m
yt-dlp
unstable.yt-dlp
gallery-dl
p7zip
ncdu
];
@ -121,7 +146,7 @@ in
environment.shellAliases = {
l = "ls -alh";
n = "yazi";
n = "y";
gc = "git commit -v";
gpl = "git pull";
gd = "git diff";