From 8bbf31a916896b3f253616fa3a7aa07fa1136869 Mon Sep 17 00:00:00 2001 From: Myned Date: Wed, 1 Jan 2025 11:46:39 -0600 Subject: [PATCH] xwayland: initial disabled program Signed-off-by: Myned --- options/custom/programs/xwayland.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 options/custom/programs/xwayland.nix diff --git a/options/custom/programs/xwayland.nix b/options/custom/programs/xwayland.nix new file mode 100644 index 0000000..0aa600c --- /dev/null +++ b/options/custom/programs/xwayland.nix @@ -0,0 +1,22 @@ +{ + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.custom.programs.xwayland; +in { + options.custom.programs.xwayland = { + enable = mkOption {default = false;}; + xwayland-run = mkOption {default = true;}; + }; + + config = mkIf cfg.enable { + # https://wiki.archlinux.org/title/Wayland#Xwayland + programs.xwayland.enable = true; + + # https://gitlab.freedesktop.org/ofourdan/xwayland-run + environment.systemPackages = mkIf cfg.xwayland-run [pkgs.xwayland-run]; + }; +}