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 = {