hex/nix/module.nix
Dax 3434eb5f35
Rename voice-control to hex everywhere, without migrations (#293)
* Rename voice-control to hex everywhere, without migrations

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.

* Format

* Drop the Windows paste-last default only the beta import used
2026-10-28 13:08:44 -04:00

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 ];
};
}