From cff0ea5caccdc8087253db05fda4499bc4f6a162 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 1 Jun 2025 13:12:54 -0700 Subject: [PATCH] fix: shorten config check --- modules/home/shell/wayland.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/home/shell/wayland.nix b/modules/home/shell/wayland.nix index b57f012..05c3159 100644 --- a/modules/home/shell/wayland.nix +++ b/modules/home/shell/wayland.nix @@ -3,10 +3,12 @@ config, pkgs, ... -}: { +}: let + cfg = config.marleyos.shell.wayland; +in { options.marleyos.shell.wayland.enable = lib.mkEnableOption "wayland"; - config = lib.mkIf (config.marleyos.shell.wayland.enable && pkgs.stdenv.isLinux) { + config = lib.mkIf (cfg.enable && pkgs.stdenv.isLinux) { # Fix the "tray.target not found" error. systemd.user.targets.tray = lib.mkIf (!config.xsession.enable) { Unit = {