mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-26 06:02:34 -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.hyprland.enable = lib.mkEnableOption "enables hyprland";
|
||||||
options.hypr.enable = lib.mkEnableOption "enables hypr";
|
options.hypr.enable = lib.mkEnableOption "enables hypr";
|
||||||
|
|
||||||
config.programs.hyprland = lib.mkIf config.hyprland.enable {
|
config = {
|
||||||
enable = true;
|
programs.hyprland = lib.mkIf config.hyprland.enable {
|
||||||
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
enable = true;
|
||||||
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
|
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 {
|
config.environment = lib.mkIf config.hyprland.enable {
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
|
|
@ -18,14 +29,4 @@
|
||||||
hyprcursor
|
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