When I run hyprland the background and waybar show up, but I can’t see the open windows or the cursors. The windows definitely exist, since they’re listed when I do hyprctl clients
. I can also confirm that they’re on the correct monitor and workspace. An invisible kitty window can still run the commands I type in, so it’s only an issue with the graphics. My computer has an nvidia 3090 and is running Nixos 24.11.
The relevant parts of my setup are below:
configuration.nix
services.xserver = {
enable = true;
videoDrivers = [ "nvidia" ];
};
hardware.graphics.enable = true;
hardware.nvidia.open = false;
programs.hyprland = {
enable = true;
withUWSM = true;
};
environment.systemPackages = [ pkgs.kitty ];
home.nix
{ pkgs, ... }: {
home.packages = with pkgs; [ rofi-wayland wl-clipboard waybar mako gtk4 ];
programs.kitty.enable = true;
wayland.windowManager.hyprland = {
enable = true;
settings = {
"$mod" = "ALT";
monitor = ",preferred,auto,1";
bind = [
"$mod, q, exit"
"$mod, t, exec, kitty"
"$mod, r, exec, rofi -show drun"
"$mod, a, exec, hyprctl clients &> ~/active.txt"
];
exec-once = [
"waybar"
"kitty"
];
debug.enable_stdout_logs = true;
cursor = { no_hardware_cursors = true; };
env = [
"WLR_NO_HARDWARE_CURSORS,1"
"LIBVA_DRIVER_NAME,nvidia"
"XDG_SESSION_TYPE,wayland"
];
windowrule = [ "opaque, kitty" ];
};
};
}