Rename mkTarget's 'configElements' argument to 'config' and 'extraOptions' to 'options' to provide a more transparent interface with the underlying Nixpkgs module system.
23 lines
442 B
Nix
23 lines
442 B
Nix
{
|
|
mkTarget,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
mkTarget {
|
|
name = "jankyborders";
|
|
humanName = "JankyBorders";
|
|
|
|
config =
|
|
{ colors, opacity }:
|
|
{
|
|
services.jankyborders =
|
|
let
|
|
mkOpacityHexColor = lib.flip config.lib.stylix.mkOpacityHexColor opacity.desktop;
|
|
in
|
|
{
|
|
active_color = mkOpacityHexColor colors.base0D;
|
|
inactive_color = mkOpacityHexColor colors.base03;
|
|
};
|
|
};
|
|
}
|