{ x, pkgs, lib, config, ... }: with lib; with x; let cfg = config.module.wm.sway; in { options = { module.wm.sway = { enable = mkBool; binds.enable = mkBool; sets.enable = mkBool; bars.enable = mkBool; programs = mkOpt.attrs.str; }; }; imports = [ ./binds.nix ./sets.nix ]; config = mkIf cfg.enable { wayland.windowManager.sway = True // { package = pkgs.swayfx; checkConfig = false; xwayland = true; systemd = True; }; }; }