feat: wayland

This commit is contained in:
punkfairie 2025-05-26 15:12:22 -07:00
parent badd1aa7ad
commit 230e2d0e3a
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
3 changed files with 7 additions and 6 deletions

View file

@ -18,7 +18,9 @@ in {
# #
# #
# Graphical Desktop - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Graphical Desktop - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(lib.optionalAttrs cfg.desktop {}) (lib.optionalAttrs cfg.desktop {
wayland = enabled;
})
# #
# #
# Server - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Server - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View file

@ -3,6 +3,7 @@
./stylix.nix ./stylix.nix
./xorg.nix ./xorg.nix
./wayland.nix
./gtk.nix ./gtk.nix
./qt.nix ./qt.nix

View file

@ -1,13 +1,11 @@
{ {
config,
lib, lib,
config,
... ...
}: let }: {
cfg = config.marleyos.wayland;
in {
options.marleyos.wayland.enable = lib.mkEnableOption "wayland"; options.marleyos.wayland.enable = lib.mkEnableOption "wayland";
config = lib.mkIf cfg.enable { config = lib.mkIf config.marleyos.wayland.enable {
# 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 = {