only add stylix related options to gnome if stylix is enabled
This commit is contained in:
parent
e4731b490e
commit
890112eeb5
1 changed files with 10 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.modules.gnome;
|
cfg = config.modules.gnome;
|
||||||
|
stylixEnabled = config.modules.stylix.enable or false;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
|
@ -29,13 +30,16 @@ in
|
||||||
gnome-tweaks
|
gnome-tweaks
|
||||||
gnome-power-manager
|
gnome-power-manager
|
||||||
];
|
];
|
||||||
stylix.fonts = {
|
stylix = lib.mkIf stylixEnabled {
|
||||||
sansSerif = {
|
# disable plymouth to look more consistent with a gtk desktop
|
||||||
package = pkgs.inter;
|
targets.plymouth.enable = false;
|
||||||
name = "Intel Variable";
|
fonts = {
|
||||||
|
sansSerif = {
|
||||||
|
package = pkgs.inter;
|
||||||
|
name = "Intel Variable";
|
||||||
|
};
|
||||||
|
serif = config.stylix.fonts.sansSerif;
|
||||||
};
|
};
|
||||||
serif = config.stylix.fonts.sansSerif;
|
|
||||||
sizes.desktop = 9;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue