22 lines
348 B
Nix
22 lines
348 B
Nix
{
|
|
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"];
|
|
};
|
|
};
|
|
}
|