38 lines
604 B
Nix
38 lines
604 B
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";
|
|
};
|
|
|
|
env = [
|
|
"NIXOS_OZONE_WL, 1"
|
|
"XDG_CURRENT_DESKTOP, Hyprland"
|
|
"XDG_SESSION_DESKTOP, Hyprland"
|
|
"XDG_SESSION_TYPE, wayland"
|
|
];
|
|
|
|
ecosystem = {
|
|
no_update_news = true;
|
|
};
|
|
};
|
|
};
|
|
} |