Optionalize mkTarget's 'humanName' and 'name' arguments by inferring
'humanName' from the 'name' attribute in the /modules/<MODULE>/meta.nix
file, and 'name' from the /modules/<NAME>/ directory name.
Inferring the 'humanName' and 'name' arguments ensures consistency and
reduces boilerplate.
The 'humanName' and 'name' arguments are optionalized instead of removed
because complex modules generating target derivations need to
distinguish between them.
Closes: https://github.com/nix-community/stylix/issues/1661
(cherry picked from commit dfc859f54d)
19 lines
532 B
Nix
19 lines
532 B
Nix
{ mkTarget, ... }:
|
|
mkTarget {
|
|
# Disabled by default due to https://github.com/nix-community/stylix/issues/180
|
|
autoEnable = false;
|
|
|
|
config =
|
|
{ fonts }:
|
|
{
|
|
xfconf.settings = with fonts; {
|
|
xfwm4 = {
|
|
"general/title_font" = "${sansSerif.name} ${toString sizes.desktop}";
|
|
};
|
|
xsettings = {
|
|
"Gtk/FontName" = "${sansSerif.name} ${toString sizes.applications}";
|
|
"Gtk/MonospaceFontName" = "${monospace.name} ${toString sizes.applications}";
|
|
};
|
|
};
|
|
};
|
|
}
|