Grok Bot on Linux, as a Nix flake. Proprietary; not affiliated with xAI or Cursor.
nix run github:d-513/grok-bot-nixnix run is a one-shot. Login redirects (sand:// / grokbot://) need a real
install so the desktop file is on XDG_DATA_DIRS.
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
grok-bot-nix = {
url = "github:d-513/grok-bot-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}{ inputs, pkgs, ... }:
{
environment.systemPackages = [
inputs.grok-bot-nix.packages.${pkgs.system}.default
];
}Same flake input, then:
{ inputs, pkgs, ... }:
{
home.packages = [
inputs.grok-bot-nix.packages.${pkgs.system}.default
];
}{
nixpkgs.overlays = [ inputs.grok-bot-nix.overlays.default ];
nixpkgs.config.allowUnfreePredicate =
pkg: builtins.elem (pkgs.lib.getName pkg) [ "grok-bot" ];
environment.systemPackages = [ pkgs.grok-bot ];
}The overlay respects your unfree config. nix run / packages already allow
unfree for this package.
nix profile install github:d-513/grok-bot-nixenvironment.sessionVariables.NIXOS_OZONE_WL = "1";Without that, it runs under XWayland/X11.
The in-app updater does not work under Nix. This repo pins a .deb URL and
hash, so an old pin still builds — you just stay on that version until the
pin moves.
A GitHub Action here checks upstream every six hours and commits a new pin when a release appears. On your machine, pick it up with:
nix flake update grok-bot-nixthen rebuild. nix flake update without an attribute updates nixpkgs too.