mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
36 lines
563 B
Nix
36 lines
563 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; {
|
|
options.niveum = {
|
|
wirelessInterface = mkOption {type = types.str;};
|
|
|
|
batteryName = mkOption {type = types.str;};
|
|
|
|
promptColours = let
|
|
colours16 = types.enum [
|
|
"black"
|
|
"red"
|
|
"green"
|
|
"yellow"
|
|
"blue"
|
|
"magenta"
|
|
"cyan"
|
|
"white"
|
|
];
|
|
in {
|
|
success = mkOption {
|
|
type = colours16;
|
|
default = "green";
|
|
};
|
|
failure = mkOption {
|
|
type = colours16;
|
|
default = "red";
|
|
};
|
|
};
|
|
};
|
|
}
|