26 lines
524 B
Nix
26 lines
524 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";
|
|
};
|
|
|
|
};
|
|
|
|
}
|