Rename mkTarget's 'configElements' argument to 'config' and 'extraOptions' to 'options' to provide a more transparent interface with the underlying Nixpkgs module system.
29 lines
724 B
Nix
29 lines
724 B
Nix
{ mkTarget, ... }:
|
|
mkTarget {
|
|
name = "gdu";
|
|
humanName = "go DiskUsage()";
|
|
|
|
config =
|
|
{ colors }:
|
|
{
|
|
xdg.configFile."gdu/gdu.yaml" = {
|
|
enable = true;
|
|
text = with colors.withHashtag; ''
|
|
style:
|
|
selected-row:
|
|
text-color: "${base05}"
|
|
background-color: "${base00}"
|
|
result-row:
|
|
number-color: "${base06}"
|
|
directory-color: "${base02}"
|
|
footer:
|
|
text-color: "${base05}"
|
|
background-color: "${base00}"
|
|
number-color: "${base06}"
|
|
header:
|
|
text-color: "${base05}"
|
|
background-color: "${base00}"
|
|
'';
|
|
};
|
|
};
|
|
}
|