mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
13 lines
381 B
Nix
13 lines
381 B
Nix
{ lib, config, ... }:
|
|
|
|
let
|
|
generateIcons = n: lib.concatStringsSep " " (builtins.map (x: "{icon" + toString x + "}") (lib.range 0 (n - 1)));
|
|
in
|
|
{
|
|
options.swarselsystems.cpuString = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = generateIcons config.swarselsystems.cpuCount;
|
|
description = "The generated icons string for use by Waybar.";
|
|
internal = true;
|
|
};
|
|
}
|