Rename mkTarget's 'configElements' argument to 'config' and 'extraOptions' to 'options' to provide a more transparent interface with the underlying Nixpkgs module system.
24 lines
446 B
Nix
24 lines
446 B
Nix
{ mkTarget, ... }:
|
|
mkTarget {
|
|
name = "sxiv";
|
|
humanName = "Sxiv";
|
|
|
|
config = [
|
|
(
|
|
{ fonts }:
|
|
{
|
|
xresources.properties."Sxiv.font" =
|
|
"${fonts.sansSerif.name}-${toString fonts.sizes.applications}";
|
|
}
|
|
)
|
|
(
|
|
{ colors }:
|
|
{
|
|
xresources.properties = {
|
|
"Sxiv.foreground" = "#${colors.base01}";
|
|
"Sxiv.background" = "#${colors.base04}";
|
|
};
|
|
}
|
|
)
|
|
];
|
|
}
|