Add Hyprland Toggle

This commit is contained in:
2026-01-05 06:05:30 +01:00
parent 0fc4f4645e
commit 9d5b8eff9c
6 changed files with 62 additions and 35 deletions

15
home/hyprland.nix Normal file
View File

@@ -0,0 +1,15 @@
{ inputs, pkgs, lib, config, ... }:
let
cfg = config.my.desktop.hyprland;
in
{
programs.kitty.enable = config.my.desktop.enable; # required for the default Hyprland config
wayland.windowManager.hyprland = lib.mkIf cfg.enable {
enable = true;
# set the flake package
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
# make sure to also set the portal package, so that they are in sync
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
systemd.enable = true;
};
}