feat(nix): migrate lsd

This commit is contained in:
Stefan Imhoff
2024-07-27 15:44:12 +02:00
parent b77eee4893
commit 3a0ab67db1
3 changed files with 96 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
"fileicon" # macOS CLI for managing custom icons for files and folders
"fish" # TODO: Migrate to nix
"gettext" # INFO: Dependency of Neovim
"libiconv" # INFO: Dependency of nixpkgs_fmt
"luajit" # INFO: Dependency of Neovim
"neovim" # TODO: Migrate to nix
"oatmeal" # Terminal UI to chat with large language models (LLM) using backends such as Ollama, and direct integrations with your favourite editor like Neovim!

View File

@@ -22,6 +22,7 @@ in
./lazydocker
./lazygit
./lf
./lsd
./oatmeal
./ripgrep
./ruby

94
nix/home/lsd/default.nix Normal file
View File

@@ -0,0 +1,94 @@
{ pkgs, ... }:
{
programs.lsd =
{
enable = true;
enableAliases = true;
settings = {
classic = false;
blocks = [
"permission"
"user"
"group"
"size"
"date"
"name"
];
date = "date";
dereference = false;
icons = {
when = "auto";
theme = "fancy";
separator = " ";
};
indicators = false;
layout = "grid";
recursion = {
enabled = false;
};
size = "default";
permission = "rwx";
sorting = {
column = "name";
reverse = false;
dir-grouping = "none";
};
no-symlink = false;
total-size = false;
hyperlink = "never";
symlink-arrow = "";
header = false;
};
colors = {
user = 230;
group = 187;
permission = {
read = "dark_green";
write = "dark_yellow";
exec = "dark_red";
exec-sticky = 5;
no-access = 245;
octal = 6;
acl = "dark_cyan";
context = "cyan";
};
date = {
hour-old = 40;
day-old = 42;
older = 36;
};
size = {
none = 245;
small = 229;
medium = 216;
large = 172;
};
inode = {
valid = 13;
invalid = 245;
};
links = {
valid = 13;
invalid = 245;
};
tree-edge = 245;
git-status = {
default = 245;
unmodified = 245;
ignored = 245;
new-in-index = "dark_green";
new-in-workdir = "dark_green";
typechange = "dark_yellow";
deleted = "dark_red";
renamed = "dark_green";
modified = "dark_yellow";
conflicted = "dark_red";
};
};
};
home.packages = with pkgs; [
lsd
];
}