synix/modules/home/stylix/targets/hyprland.nix
sid 95a533c876
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 3s
initial commit
2026-02-23 20:34:35 +01:00

40 lines
735 B
Nix

{ config, lib, ... }:
let
cfg = config.stylix;
target = cfg.targets.hyprland;
inherit (lib)
mkIf
mkOption
types
;
in
{
options.stylix.targets.hyprland = {
gaps = mkOption {
type = types.int;
default = 0;
description = "Window gaps in pixels.";
};
radius = mkOption {
type = types.int;
default = 0;
description = "Window corner radius in pixels.";
};
};
config = mkIf (cfg.enable && target.enable) {
wayland.windowManager.hyprland = {
settings = {
general = {
gaps_in = target.gaps / 2;
gaps_out = target.gaps;
};
decoration = {
rounding = target.radius;
};
};
};
};
}