Files
nixos-config/modules/system/custom-options.nix
Mans Ziesel 609e1316fe Add laptop battery and power-profile widgets to waybar
Gate on new custom.isLaptop flag so desktop hosts stay clean. Battery
format uses dedicated glyphs for charging, AC, and full states so AC
status is visible at 100%.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-02 15:47:06 +02:00

44 lines
1.4 KiB
Nix

{ lib, ... }:
{
options.custom.displays = lib.mkOption {
type = lib.types.attrsOf (lib.types.attrsOf lib.types.str);
default = { };
description = "Per-host sway output configuration keyed by connector name.";
};
options.custom.workspaceOutputs = lib.mkOption {
type = lib.types.attrsOf lib.types.str;
default = { };
description = "Per-host sway workspace-to-output assignments, e.g. { \"1\" = \"DP-2\"; }.";
};
options.custom.cpuTempHwmon = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = null;
description = "The path of the hwmon-directory of the device, e.g. /sys/devices/pci0000:00/0000:00:18.3/hwmon";
};
options.custom.cpuTempFilename = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = "temp1_input";
description = "The temperature filename of your hwmon-path-abs, e.g. temp1_input";
};
options.custom.isLaptop = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Whether this host is a laptop. Toggles laptop-only UI like battery and power-profile widgets in waybar.";
};
options.custom.windowsBoot = lib.mkOption {
type = lib.types.attrsOf (lib.types.attrsOf lib.types.str);
default = { };
description = ''
Per-host Windows boot entries for systemd-boot, keyed by version.
Forwarded verbatim to boot.loader.systemd-boot.windows.
Example: { "11".efiDeviceHandle = "HD3b"; }
'';
};
}