Files
nixos-config/modules/home/hypr/hyprland.nix

72 lines
1.6 KiB
Nix
Raw Normal View History

{
# inputs,
pkgs,
2025-11-09 14:34:44 -05:00
config,
...
}:
{
home.packages = with pkgs; [
hyprpolkitagent
];
2025-12-07 23:51:09 -05:00
# xdg.configFile."uwsm/env".source =
# "${config.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh";
wayland.windowManager.hyprland = {
enable = true;
2025-12-07 23:51:09 -05:00
# systemd.enable = false;
package = null;
portalPackage = null;
settings = {
2025-11-09 14:34:44 -05:00
source = [
"${config.xdg.configHome}/hypr/monitors.conf"
];
2025-11-16 01:17:15 -05:00
general = {
gaps_in = 5;
gaps_out = 10;
border_size = 2;
"col.active_border" = "rgb(4479A4)";
"col.inactive_border" = "rgba(4479A480)";
};
2025-11-09 14:34:44 -05:00
decoration = {
rounding = 10;
active_opacity = 0.95;
inactive_opacity = 0.85;
fullscreen_opacity = 1.0;
blur = {
enabled = true;
size = 8;
passes = 3;
new_optimizations = true;
};
};
2025-11-16 01:17:15 -05:00
layerrule = [
"blur, waybar" # Add blur to waybar
"blurpopups, waybar" # Blur waybar popups too!
"ignorealpha 0.2, waybar" # Make it so transparent parts are ignored
];
exec-once = [
"systemctl --user enable --now hypridle.service"
"systemctl --user enable --now hyprpolkitagent.service"
"systemctl --user enable app-com.mitchellh.ghostty.service"
"wpaperd -d"
];
env = [
"NIXOS_OZONE_WL, 1"
2025-11-12 14:23:51 -05:00
"HYPRSHOT_DIR, ${config.xdg.userDirs.extraConfig.XDG_SCREENSHOTS_DIR}"
"XDG_CURRENT_DESKTOP, Hyprland"
"XDG_SESSION_TYPE, wayland"
"XDG_SESSION_DESKTOP, Hyprland"
];
};
};
}