os/shared/home/gui/sway.nix

27 lines
524 B
Nix
Raw Normal View History

2023-05-21 21:15:04 +02:00
{ pkgs, lib, config, ... }:
let cfg = config.custom.gui.sway;
in with lib; {
options.custom.gui.sway = {
enable = mkEnableOption "sway window manager";
};
config = mkIf (cfg.enable) {
home.packages = [];
wayland.windowManager.sway = {
# This is all required to get it to not die.
enable = true;
extraSessionCommands = "export WLR_NO_HARDWARE_CURSORS=1";
extraOptions = [ "--unsupported-gpu" ];
config.output."*".bg = "${../../data/wallpaper.jpg} fill";
};
};
}