Important
This is the Protontweaks CLI repository, you can find its sister repositories at the following links!
- CLI (you are here)
- App
- Database / API
Automatically apply necessary protontricks to your games!
This will automatically install protontweaks with your systems package manager if its available
$ bash -c "$(curl -fsSL https://protontweaks.com/install.sh)"
NixOS Flake Example
{
description = "NixOS Example";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
protontweaks.url = "github:rain-cafe/protontweaks/main";
protontweaks.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, ... } @ inputs: {
nixosConfigurations =
let
inherit (self) outputs;
inherit (nixpkgs.lib) nixosSystem;
in
{
your-hostname = nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [
# This is just an example, you can obviously format this however you want!
({ pkgs, ... }: {
imports = [
inputs.protontweaks.nixosModules.protontweaks
];
nixpkgs = {
overlays = [
inputs.protontweaks.overlay
];
};
# This will install protontweaks and enable the watch service that automatically updates the launch options
services.protontweaks.enable = true;
})
# Your NixOS Modules here...
../defaults/configuration.nix
];
};
};
};
}
This installs a systemd service that automatically updates your launch options when you install a game.
$ protontweaks service --install
Add the following to the launch options for a steam game!
protontweaks %command%
We attempt to load a configuration file from the following locations, from highest to lowest priority:
$XDG_CONFIG_HOME/protontweaks.json
$HOME/.config/protontweaks.json
/etc/protontweaks.json
{
// Whether to automatically run games with gamemoderun (if installed and supported)
// Default: true
"gamemode": true,
// Whether to automatically run games with mangohud (if installed and supported)
// Default: false
"mangohud": true
}