git hyprland

This commit is contained in:
unexplrd
2025-03-07 13:13:58 +02:00
parent 37f0fc43b1
commit efd7fd542e
6 changed files with 590 additions and 141 deletions

View File

@ -1,4 +1,5 @@
{
perSystem,
config,
pkgs,
lib,
@ -13,7 +14,11 @@ in {
mkEnableOption "enable hyprland desktop";
};
config = mkIf cfg.enable {
programs.hyprland.enable = true;
programs.hyprland = {
enable = true;
package = perSystem.hyprland.hyprland;
portalPackage = perSystem.hyprland.xdg-desktop-portal-hyprland;
};
environment.systemPackages = with pkgs; [
brightnessctl
gcr_4
@ -44,9 +49,9 @@ in {
};
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk
extraPortals = [
perSystem.hyprland.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
];
config.common.default = [
"hyprland"