2023-09-22 14:38:30 +08:00
|
|
|
{
|
2025-01-31 21:24:47 +01:00
|
|
|
programs.lsd = {
|
|
|
|
enable = true;
|
|
|
|
enableAliases = false;
|
|
|
|
settings = {
|
|
|
|
date = "relative";
|
|
|
|
blocks = [ "date" "size" "name" ];
|
|
|
|
layout = "oneline";
|
|
|
|
sorting.dir-grouping = "first";
|
|
|
|
ignore-globs = [ ".git" ".hg" ".bsp" ];
|
|
|
|
};
|
|
|
|
colors = {
|
|
|
|
date = {
|
|
|
|
day-old = "green";
|
|
|
|
older = "dark_green";
|
2023-09-22 14:38:30 +08:00
|
|
|
};
|
2025-01-31 21:24:47 +01:00
|
|
|
size = {
|
|
|
|
none = "grey";
|
|
|
|
small = "grey";
|
|
|
|
medium = "yellow";
|
|
|
|
large = "dark_yellow";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
icons = {
|
|
|
|
name = {
|
|
|
|
".trash" = "";
|
|
|
|
".cargo" = "";
|
2023-09-22 14:38:30 +08:00
|
|
|
};
|
2025-01-31 21:24:47 +01:00
|
|
|
extension = {
|
|
|
|
"go" = "";
|
|
|
|
"hs" = "";
|
|
|
|
};
|
|
|
|
filetype = {
|
|
|
|
"dir" = "📂";
|
|
|
|
"file" = "📄";
|
2025-01-21 13:12:40 +01:00
|
|
|
};
|
2023-09-22 14:38:30 +08:00
|
|
|
};
|
|
|
|
};
|
2025-01-31 21:24:47 +01:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/lsd/config.yaml
|
|
|
|
assertFileExists home-files/.config/lsd/colors.yaml
|
|
|
|
assertFileExists home-files/.config/lsd/icons.yaml
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.config/lsd/config.yaml \
|
|
|
|
${./example-settings-expected.yaml}
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.config/lsd/colors.yaml \
|
|
|
|
${./example-colors-expected.yaml}
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.config/lsd/icons.yaml \
|
|
|
|
${./example-icons-expected.yaml}
|
|
|
|
'';
|
2023-09-22 14:38:30 +08:00
|
|
|
}
|