From 70129ce5e1deb37b6e4d3b030b0b0eb45ace0313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Fri, 9 May 2025 12:35:17 +0200 Subject: [PATCH] fix(home-modules): don't set stylix image when headless --- flake-modules/home-modules.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake-modules/home-modules.nix b/flake-modules/home-modules.nix index e117fb9..277a3cd 100644 --- a/flake-modules/home-modules.nix +++ b/flake-modules/home-modules.nix @@ -17,9 +17,9 @@ imports = defaultModules ++ [ inputs.stylix.homeManagerModules.stylix ( - { config, ... }: - { - stylix.image = config.jhome.sway.background; + { lib, config, ... }: + lib.mkIf config.jhome.gui.enable { + stylix.image = config.jhome.gui.sway.background; } ) ];