Files
home-manager/modules/programs/hyprtoolkit.nix
Austin Horstman 42c3fc301e maintainers: remove duplicate nixpkgs maintainers
Remove the Home Manager entries for nikp123 and rachitvrma now that nixpkgs provides them.
2026-08-22 01:19:16 -05:00

60 lines
1.6 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.hyprtoolkit;
in
{
meta.maintainers = [ lib.maintainers.rachitvrma ];
options.programs.hyprtoolkit = {
enable = lib.mkEnableOption ''
A GUI toolkit for developing applications that run natively on Wayland.
Its specifically made for Hyprlands needs, but will generally run on
any Wayland compositor that supports modern standards.
'';
package = lib.mkPackageOption pkgs "hyprtoolkit" { nullable = true; };
settings = lib.mkOption {
type =
with lib.types;
let
valueType =
nullOr (oneOf [
int
str
(attrsOf valueType)
(listOf valueType)
])
// {
description = "Hyprtoolkit configuration values";
};
in
valueType;
default = { };
example = {
background = "0xFF181818";
base = "0xFF202020";
h1_size = 19;
h2_size = 15;
};
description = ''
The configuration written to {file}`$XDG_CONFIG_HOME/hypr/hyprtoolkit.conf`.
More options can be found here: <https://wiki.hypr.land/Hypr-Ecosystem/hyprtoolkit/>
'';
};
};
config = lib.mkIf cfg.enable {
assertions = [
(lib.hm.assertions.assertPlatform "programs.hyprtoolkit" pkgs lib.platforms.linux)
];
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
xdg.configFile."hypr/hyprtoolkit.conf" = lib.mkIf (cfg.settings != { }) {
text = lib.hm.generators.toHyprconf { attrs = cfg.settings; };
};
};
}