only add stylix related options to gnome if stylix is enabled

This commit is contained in:
Anthony Rodriguez 2024-09-06 23:32:36 +02:00
parent e4731b490e
commit 890112eeb5
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -1,6 +1,7 @@
{ config, lib, pkgs, ... }:
let
cfg = config.modules.gnome;
stylixEnabled = config.modules.stylix.enable or false;
in
{
options = {
@ -29,13 +30,16 @@ in
gnome-tweaks
gnome-power-manager
];
stylix.fonts = {
stylix = lib.mkIf stylixEnabled {
# disable plymouth to look more consistent with a gtk desktop
targets.plymouth.enable = false;
fonts = {
sansSerif = {
package = pkgs.inter;
name = "Intel Variable";
};
serif = config.stylix.fonts.sansSerif;
sizes.desktop = 9;
};
};
};
}