home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit b07da7bfef1d82b6af2361a9a9c2e64ba39c9f5e
parent f726ce603303ff2e8cfc3c266c5f257ba55c5434
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 19 Aug 2022 12:23:04 +0000

systems/modules: fix some wayland/swayy setup

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Msystems/modules/desktop/sway.nix | 5++++-
Msystems/modules/desktop/wayland.nix | 9++++++++-
2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/systems/modules/desktop/sway.nix b/systems/modules/desktop/sway.nix @@ -9,6 +9,9 @@ in enable = mkEnableOption "Enable sway desktop profile"; }; }; - config = mkIf cfg.enable = {}; + config = mkIf cfg.enable { + # Enable wayland desktop modules if not already + modules.desktop.wayland.enable = true; + }; } diff --git a/systems/modules/desktop/wayland.nix b/systems/modules/desktop/wayland.nix @@ -13,6 +13,13 @@ in # Enable desktop module if not already. modules.desktop.enable = true; # Force disable xorg desktop module - modules.desktop.xorg = mkForce false; + modules.desktop.xorg.enable = mkForce false; + # Hardware Support for Wayland Sway, … + hardware = { + opengl = { + enable = true; + driSupport = true; + }; + }; }; }