1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-10 03:53:53 +00:00
ultima/modules/home/wm/sway/default.nix
2024-12-09 10:15:55 +09:00

28 lines
514 B
Nix

{ x, pkgs, lib, config, True, ... }:
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;
};
};
}