nixos/modules/home/hyprland/hyprland.nix

62 lines
1.1 KiB
Nix

{
config,
host,
lib,
osConfig,
pkgs,
...
}:
with lib;
let
cfg = osConfig.modules.hyprland;
in
{
wayland.windowManager.hyprland = {
enable = cfg.enable;
package = pkgs.hyprland;
systemd.enable = false;
xwayland.enable = true;
settings = {
monitor = cfg.monitor;
general = {
"$modifier" = "SUPER";
gaps_in = 5;
gaps_out = 20;
border_size = 2;
col.active_border = "rgba(33ccffee) rgba(00ff99ee) 45deg";
col.inactive_border = "rgba(595959aa)";
layout = "dwindle";
};
decoration = {
rounding = 8;
multisample_edges = true;
inactive_opacity = 0.95;
blur = true;
blur_size = 3;
blur_passes = 3;
blur_new_optimizations = true;
drop_shadow = true;
shadow_range = 4;
shadow_render_power = 3;
col.shadow = "rgba(1a1a1aee)";
};
env = [
"NIXOS_OZONE_WL, 1"
"XDG_CURRENT_DESKTOP, Hyprland"
"XDG_SESSION_DESKTOP, Hyprland"
"XDG_SESSION_TYPE, wayland"
];
ecosystem = {
no_update_news = true;
};
};
};
}