1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/programs/lsd/example-settings-using-paths.nix
Hoang Nguyen 17a1004948
lsd: allow specifying a path type value for icons and colors options (#7733)
This allows users to use an icons or colors theme file taken from GitHub
directly without the YAML -> Nix translation in the configuration.
2025-09-13 19:32:33 -05:00

37 lines
908 B
Nix

{
programs.lsd = {
enable = true;
settings = {
date = "relative";
blocks = [
"date"
"size"
"name"
];
layout = "oneline";
sorting.dir-grouping = "first";
ignore-globs = [
".git"
".hg"
".bsp"
];
};
colors = ./example-colors-expected.yaml;
icons = ./example-icons-expected.yaml;
};
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}
'';
}