nixos-mods/improvedDefaults: add wayland

secrix-issue25
Felix Stupp 1 year ago
parent 1bc161d8d6
commit 45473cde4a
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -12,6 +12,7 @@ in
imports = [
./command-not-found.nix
./powertop-tlp.nix
./wayland.nix
];

@ -0,0 +1,37 @@
{ config
, lib
, pkgs
, ...
}:
let
cfg = config.x-banananetwork.improvedDefaults;
in
{
config = lib.mkIf cfg.enable (
let
prgs = config.programs;
servDM = config.services.desktopManager;
xDM = config.services.xserver.desktopManager;
waylandEnabled = builtins.any (x: x) ([
prgs.hyprland.enable
prgs.miriway.enable
prgs.river.enable
prgs.sway.enable
prgs.wayfire.enable
(xDM.mate.enable && xDM.mate.enableWaylandSession)
servDM.lomiri.enable # unsure wheather this is using Wayland
servDM.plasma6.enable
]);
in
{
# make Steam Input events on Wayland possible
programs.steam.extest.enable = lib.mkIf (config.programs.steam.enable && waylandEnabled) true;
}
);
}
Loading…
Cancel
Save