mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-05 20:28:54 -05:00
19 lines
583 B
Nix
19 lines
583 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.systemPackages = lib.mkIf config.hypr.enable with pkgs;
|
|
[
|
|
hyprcursor
|
|
]
|
|
|
|
config.environment.sessionVariables = lib.mkIf config.hypr.enable {
|
|
NIXOS_OZONE_WL = "1";
|
|
};
|
|
}
|