os/shared/home/gui/sway.nix

30 lines
591 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" ];
2023-05-22 00:45:36 +02:00
config = {
output."*".bg = "${../../data/wallpaper.jpg} fill";
terminal = "${pkgs.kitty}/bin/kitty";
};
2023-05-21 21:15:04 +02:00
};
};
}