mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-09 09:13:58 +00:00
30 lines
393 B
Nix
30 lines
393 B
Nix
{
|
|
x,
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
with x;
|
|
let
|
|
cfg = config.module.wm.sway;
|
|
in
|
|
{
|
|
options = {
|
|
module.wm.sway = {
|
|
enable = mkBool;
|
|
programs = mkOpt.attrs.str;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
wayland.windowManager.sway = True // {
|
|
package = pkgs.swayfx;
|
|
checkConfig = false;
|
|
xwayland = true;
|
|
systemd = True;
|
|
};
|
|
};
|
|
}
|