Files
Nomarchy/modules/home/hyprland.nix
Bernardo Magri 70798abcb0 fix(vm): debug hang by disabling on-boot scripts and increasing resources
- Temporarily disable 'nomarchy-on-boot' and 'nomarchy-welcome' in Hyprland to isolate hang.
- Increase VM memory to 4096MB and cores to 4.
- Enable serial console debugging for VM.
- Enable qemuGuest service.
2026-04-05 13:23:20 +01:00

44 lines
1.3 KiB
Nix

{ config, pkgs, lib, ... }:
let
activeWallpaper = if config.nomarchy.wallpaper != "" then
config.nomarchy.wallpaper
else "${../../assets/themes/catppuccin/backgrounds/1-totoro.png}";
hyprlandState = config.nomarchy.hyprland;
in
{
home.sessionVariables = {
WLR_NO_HARDWARE_CURSORS = "1";
};
wayland.windowManager.hyprland = {
enable = true;
settings = {
"cursor" = {
"no_hardware_cursors" = true;
};
"general" = {
"gaps_in" = hyprlandState.gaps_in;
"gaps_out" = hyprlandState.gaps_out;
"border_size" = hyprlandState.border_size;
"col.active_border" = "rgb(${config.colorScheme.palette.base0E})";
"col.inactive_border" = "rgb(${config.colorScheme.palette.base03})";
};
"exec-once" = [
"swww-daemon & sleep 0.5 && swww img ${activeWallpaper} --transition-type none"
# "nomarchy-on-boot"
# "nomarchy-welcome"
] ++ (lib.optional config.nomarchy.toggles.waybar "waybar");
"bind" = [
"SUPER, Space, exec, walker"
"SUPER ALT, Space, exec, nomarchy-theme-selector"
"SUPER CTRL, Space, exec, nomarchy-font-selector"
"SUPER SHIFT, Space, exec, nomarchy-wallpaper-selector"
"SUPER, Return, exec, alacritty"
"SUPER, Q, killactive,"
"SUPER, M, exit,"
];
};
};
}