Remove unsafe config check

This commit is contained in:
Patrick Menking 2024-09-17 14:40:34 -04:00
parent 8b7c488869
commit 333417627f

View file

@ -1,18 +1,15 @@
{ inputs, pkgs, lib, config, ...}: {
imports = [./waybar.nix];
options.hypr.enable = lib.mkEnableOption "enables hyprland";
config = lib.mkIf config.hypr.enable {
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-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;
};
environment.sessionVariables = {
WLR_NO_HARDWARE_CURSORS = "1";
NIXOS_OZONE_WL = "1";
};
config.environment.sessionVariables = lib.mkIf config.hypr.enable {
WLR_NO_HARDWARE_CURSORS = "1";
NIXOS_OZONE_WL = "1";
};
}