blob: f22b435d5fd1677c5ad6c4b14e811eae2f3baf53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Modern ls replacement with icons and colors
{ config, lib, ... }:
{
options.file-management.eza = {
enable = lib.mkEnableOption "Enables eza.";
package = lib.mkOption {
type = lib.types.package;
readOnly = true;
default = config.programs.eza.package;
defaultText = lib.literalExpression "config.programs.eza.package";
description = "The eza package to use.";
};
};
config = lib.mkIf config.file-management.eza.enable {
programs.eza = {
enable = true;
icons = "always";
colors = "always";
git = config.development.git.enable;
enableZshIntegration = config.terminal.zsh.enable;
extraOptions = [
"--all"
"--git"
"--group"
"--group-directories-first"
"--header"
"--long"
];
};
};
}
|