nixos/modules/home/hyprland/hyprland.nix

49 lines
852 B
Nix

{
config,
host,
lib,
osConfig,
pkgs,
...
}:
with lib;
let
cfg = osConfig.modules.hyprland;
in
{
config = mkIf cfg.enable {
home.packages = with pkgs; [
kitty
];
systemd.user.targets.hyprland-session.Unit.Wants = [
"xdg-desktop-autostart.target"
];
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.hyprland;
systemd = {
enable = true;
enableXdgAutostart = true;
};
xwayland.enable = true;
settings = {
general = {
"$modifier" = "SUPER";
};
env = [
"NIXOS_OZONE_WL, 1"
"XDG_CURRENT_DESKTOP, Hyprland"
"XDG_SESSION_DESKTOP, Hyprland"
"XDG_SESSION_TYPE, wayland"
];
ecosystem = {
no_update_news = true;
};
};
};
};
}