os/shared/home/gui/sway.nix

29 lines
591 B
Nix

{ 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";
terminal = "${pkgs.kitty}/bin/kitty";
};
};
};
}