CrOS/modules/hypr/default.nix
2024-09-17 17:37:58 -04:00

21 lines
579 B
Nix

{ inputs, pkgs, lib, config, ...}: {
options.hypr.enable = lib.mkEnableOption "enables hyprland";
config.programs.hyprland = lib.mkIf config.hypr.enable {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
};
config.environment = lib.mkIf config.hypr.enable {
sessionVariables = {
NIXOS_OZONE_WL = "1";
};
systemPackages = with pkgs;
[
hyprcursor
]
};
}