1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-22 10:19:39 +01:00
home-manager/tests/modules/programs/lsd/example-settings.nix
Austin Horstman cf351071fb lsd: enableAliases -> enableShellIntegration
Allow granular control of alias creation utilizing our shell integration
options.
2025-04-27 22:15:34 -05:00

61 lines
1.3 KiB
Nix

{
programs.lsd = {
enable = true;
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";
};
size = {
none = "grey";
small = "grey";
medium = "yellow";
large = "dark_yellow";
};
};
icons = {
name = {
".trash" = "";
".cargo" = "";
};
extension = {
"go" = "";
"hs" = "";
};
filetype = {
"dir" = "📂";
"file" = "📄";
};
};
};
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}
'';
}