nixos/modules/home/hyprland/hyprland.nix

66 lines
1.2 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;
inactive_opacity = 0.95;
blur = {
enabled = true;
size = 3;
passes = 3;
new_optimizations = true;
};
shadow = {
enabled = true;
range = 4;
render_power = 3;
# Home manager hyprland module sets this for some reason
color = mkForce "rgba(1a1a1aee)";
};
};
env = [
"NIXOS_OZONE_WL, 1"
"XDG_CURRENT_DESKTOP, Hyprland"
"XDG_SESSION_DESKTOP, Hyprland"
"XDG_SESSION_TYPE, wayland"
];
ecosystem = {
no_update_news = true;
};
};
};
}