mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-12 02:04:09 -05:00
22 lines
622 B
Nix
22 lines
622 B
Nix
{ inputs, pkgs, lib, config, ...}: {
|
|
options.hyprland.enable = lib.mkEnableOption "enables hyprland";
|
|
|
|
config = {
|
|
programs.hyprland = lib.mkIf config.hyprland.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.hyprland.enable {
|
|
sessionVariables = {
|
|
NIXOS_OZONE_WL = "1";
|
|
};
|
|
systemPackages = with pkgs;
|
|
[
|
|
hyprcursor
|
|
];
|
|
};
|
|
}
|