xwayland: initial disabled program
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
d8fd615040
commit
8bbf31a916
1 changed files with 22 additions and 0 deletions
22
options/custom/programs/xwayland.nix
Normal file
22
options/custom/programs/xwayland.nix
Normal file
|
@ -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];
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue