1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-10 03:53:53 +00:00
ultima/modules/home/wm/hyprland/default.nix
2024-12-09 10:15:55 +09:00

25 lines
504 B
Nix

{ x, pkgs, inputs, lib, config, True, ... }:
with lib;
with x;
let cfg = config.module.wm.hyprland;
in {
options = {
module.wm.hyprland = {
enable = mkBool;
autostart = mkOpt.list.str;
programs = mkOpt.list.str;
};
};
imports = [ ./binds.nix ./rules.nix ./sets.nix ];
config = mkIf cfg.enable {
wayland.windowManager.hyprland = True // {
xwayland = True;
systemd = True;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
};
};
}