1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-08 19:33:54 +00:00
ultima/modules/nixos/programs/hyprland/default.nix

29 lines
407 B
Nix

{
x,
inputs,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.hyprland;
h = inputs.hyprland.packages.${pkgs.system};
in
{
options = {
module.programs.hyprland = {
enable = mkBool;
};
};
config = mkIf cfg.enable {
programs.hyprland = True // {
package = h.hyprland;
portalPackage = h.xdg-desktop-portal-hyprland;
};
};
}