XIVLauncher-RB for NixOS.
Firstly your system must have Flakes enabled. To do this, add the following to your configuration.nix
file:
nix.settings.experimental-features = [ "nix-command" "flakes" ];
Then run sudo nixos-rebuilt test
, then create a flake.nix
file in your NixOS configuration directory with the following content:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; # This should match the version of NixOS you want to use
nixos-xivlauncher-rb = {
url = "github:drakon64/nixos-xivlauncher-rb";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{
self,
nixpkgs,
}:
{
nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem {
modules = [
./configuration.nix
];
specialArgs = {
inherit inputs;
};
};
};
};
}
Then you can add xivlauncher-rb
to configuration.nix
like so:
{
config,
lib,
pkgs,
inputs,
...
}:
...
environment.systemPackages = [
inputs.nixos-xivlauncher-rb.packages.x86_64-linux.default
];
environment.systemPackages = [
(inputs.nixos-xivlauncher-rb.packages.x86_64-linux.default.override { useGameMode = true; })
];
environment.systemPackages = [
(inputs.nixos-xivlauncher-rb.packages.x86_64-linux.default.override { nvngxPath = "${config.hardware.nvidia.package}/lib/nvidia/wine"; })
];
Now run sudo nix flake update
in your NixOS configuration directory and rebuild your system as normal. Please note that the previous method of updating Nix channels will no longer work, you will have to use sudo nix flake update
as long as Flakes are enabled.
- nur-packages-template for providing the template for a Nix Flake
- sersorrel and witchof0x20 for maintaining the XIVLauncher package in Nixpkgs which this heavily borrows from