Jump to content

Bolt-launcher

From Official NixOS Wiki

Note for RS3 users

The RuneScape 3 client needs OpenSSL 1.1 and GTK 2. Both are end of life and no longer in current Nixpkgs, and OpenSSL 1.1 no longer receives security fixes. Only enable this if you play RS3.

More info here and here.

NixOS 26.05

On nixos-26.05, the enableRS3 option still works:

❄︎ configuration.nix
{ pkgs, ... }:

{
  nixpkgs.config.permittedInsecurePackages = [ "openssl-1.1.1w" ];

  environment.systemPackages = [
    (pkgs.bolt-launcher.override { enableRS3 = true; })
  ];
}

nixos-unstable and NixOS 26.11 or later

enableRS3 has been removed. Instead, take only the two end-of-life libraries from nixos-26.05 and add them with extraPkgs. Bolt itself stays up to date with your system.

❄︎ flake.nix
{
  inputs.nixpkgs-2605.url = "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst";
  inputs.nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst";

  outputs =
    { nixpkgs, ... }@inputs:
    {
      nixosConfigurations.yourSystem = nixpkgs.lib.nixosSystem {
        modules = [
          ./configuration.nix
          ./hardware-configuration.nix
        ];
        specialArgs = { inherit inputs; };
      };
    };
}
❄︎ configuration.nix
{ inputs, pkgs, ... }:

let
  pkgs2605 = import inputs.nixpkgs-2605 {
    inherit (pkgs.stdenv.hostPlatform) system;
    config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
  };
in
{
  environment.systemPackages = [
    (pkgs.bolt-launcher.override {
      extraPkgs = _: [
        pkgs2605.openssl_1_1
        pkgs2605.gtk2-x11
      ];
    })
  ];
}