mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
Combine config sections
This commit is contained in:
parent
c9cf321b34
commit
4e4ad2e7a8
1 changed files with 16 additions and 15 deletions
|
|
@ -3,12 +3,23 @@
|
|||
options.hyprland.enable = lib.mkEnableOption "enables hyprland";
|
||||
options.hypr.enable = lib.mkEnableOption "enables hypr";
|
||||
|
||||
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 = {
|
||||
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;
|
||||
};
|
||||
|
||||
xserver = lib.mkIf config.hypr.enable {
|
||||
enable = true;
|
||||
windowManager.hypr = {
|
||||
enable = true;
|
||||
};
|
||||
displayManager.startx.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
config.environment = lib.mkIf config.hyprland.enable {
|
||||
sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
|
|
@ -18,14 +29,4 @@
|
|||
hyprcursor
|
||||
];
|
||||
};
|
||||
|
||||
config = lib.mkIf config.hypr.enable {
|
||||
xserver = {
|
||||
enable = true;
|
||||
windowManager.hypr = {
|
||||
enable = true;
|
||||
};
|
||||
displayManager.startx.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue