mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
The Cargo package and binary are now hex, every OS keeps its data in a hex folder, and VOICE_CONTROL_* variables are HEX_*. Hex is a fresh app: the macOS voice-control rename, its symlink, and the Windows and Linux beta settings imports are gone. The Windows installer gets a new AppId so it never takes over an old voice-control install's entry.
28 lines
555 B
Nix
28 lines
555 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.programs.hex;
|
|
in
|
|
{
|
|
options.programs.hex = {
|
|
enable = lib.mkEnableOption "Hex local voice dictation";
|
|
package = lib.mkOption {
|
|
type = lib.types.package;
|
|
description = "Hex package to install.";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
assertions = [
|
|
{
|
|
assertion = pkgs.stdenv.hostPlatform.system == "x86_64-linux";
|
|
message = "The Hex Nix package supports x86_64-linux only.";
|
|
}
|
|
];
|
|
environment.systemPackages = [ cfg.package ];
|
|
};
|
|
}
|