Combine config sections

This commit is contained in:
TheWanderingCrow 2024-09-21 16:06:35 -04:00
parent 4e4ad2e7a8
commit f865c8a586

View file

@ -1,5 +1,4 @@
{ inputs, pkgs, lib, config, ...}: {
options.hyprland.enable = lib.mkEnableOption "enables hyprland";
options.hypr.enable = lib.mkEnableOption "enables hypr";
@ -10,7 +9,7 @@
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
};
xserver = lib.mkIf config.hypr.enable {
services.xserver = lib.mkIf config.hypr.enable {
enable = true;
windowManager.hypr = {
enable = true;