From 890112eeb542796a27418a9eeb359cc20f4513b2 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Fri, 6 Sep 2024 23:32:36 +0200 Subject: [PATCH] only add stylix related options to gnome if stylix is enabled --- modules/gnome.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/modules/gnome.nix b/modules/gnome.nix index eed30fb..7915755 100644 --- a/modules/gnome.nix +++ b/modules/gnome.nix @@ -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 = { - sansSerif = { - package = pkgs.inter; - name = "Intel Variable"; + 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; }; - serif = config.stylix.fonts.sansSerif; - sizes.desktop = 9; }; }; }