fix: shorten config check

This commit is contained in:
punkfairie 2025-06-01 13:12:54 -07:00
parent f87f6f1546
commit cff0ea5cac
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6

View file

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