config/modules/home/wms/sway/default.nix

23 lines
348 B
Nix
Raw Normal View History

{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.wms.sway;
in {
options.wms.sway = with types; {
enable = mkBoolOpt false "Enable Sway";
};
config = mkIf cfg.enable {
wayland.windowManager.sway = {
enable = true;
xwayland = true;
extraOptions = ["--unsupported-gpu"];
};
};
}