flake/hosts/modules/hyprland/default.nix

34 lines
812 B
Nix
Raw Normal View History

2025-02-21 18:48:51 +10:00
# NOTE: hyprland must be enabled in BOTH your host config (for running hyprland)
# and your home-manager config (for managing hyprland's config files)
{
2024-10-30 17:35:16 +10:00
pkgs,
config,
2025-02-21 18:48:51 +10:00
lib,
...
}: {
2024-10-30 17:35:16 +10:00
options.hyprland = {
enable = lib.mkEnableOption "Hyprland";
};
config = lib.mkIf config.hyprland.enable {
programs.hyprland = {
enable = true;
2026-02-24 23:43:16 +10:00
portalPackage = pkgs.xdg-desktop-portal-hyprland;
2024-10-30 17:35:16 +10:00
#package = inputs.hyprland.packages.${pkgs.system}.hyprland;
xwayland.enable = true;
};
2025-02-21 18:48:51 +10:00
2024-10-30 17:35:16 +10:00
xdg.portal = {
enable = true;
2026-02-24 23:43:16 +10:00
wlr.enable = true;
# extraPortals = with pkgs; [
# xdg-desktop-portal-hyprland
# # xdg-desktop-portal-gtk
# ];
2024-10-30 17:35:16 +10:00
};
# TODO: finish this (I didn't like the dotfiles I was getting inspo from and stopped)
2025-02-21 18:48:51 +10:00
};
2024-10-30 17:35:16 +10:00
}