aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/file-manager/lsd/default.nix
blob: 0f57e6b18862d76a24b59396d74cfda3752cb1b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ pkgs, lib, config, ... }:

{
	options = {
		lsd.enable = lib.mkEnableOption "Enables lsd.";
	};

	config = lib.mkIf config.lsd.enable {
		programs.lsd.enable = true;
		programs.lsd.enableAliases = true;
		programs.bash.shellAliases."tree" = "${pkgs.lsd}/bin/lsd -a --tree";

		programs.lsd.settings = {
			icons.separator = "  ";
		};
	};
}