fix: shorten config check
This commit is contained in:
parent
f87f6f1546
commit
cff0ea5cac
1 changed files with 4 additions and 2 deletions
|
@ -3,10 +3,12 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
cfg = config.marleyos.shell.wayland;
|
||||||
|
in {
|
||||||
options.marleyos.shell.wayland.enable = lib.mkEnableOption "wayland";
|
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.
|
# Fix the "tray.target not found" error.
|
||||||
systemd.user.targets.tray = lib.mkIf (!config.xsession.enable) {
|
systemd.user.targets.tray = lib.mkIf (!config.xsession.enable) {
|
||||||
Unit = {
|
Unit = {
|
||||||
|
|
Loading…
Reference in a new issue