Skip to content

drakon64/nixos-xivlauncher-rb

Repository files navigation

nixos-xivlauncher-rb

XIVLauncher-RB for NixOS.

Installation

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 =
   {
      self,
      nixpkgs,
      nixos-xivlauncher-rb,
    }:
    {
      nixosConfigurations = {
        desktop = nixpkgs.lib.nixosSystem {
          modules = [
            ./configuration.nix
            nixos-xivlauncher-rb.nixosModules.default
          ];
        };
      };
    };
}

Then you can add xivlauncher-rb to configuration.nix like so:

{
  config,
  lib,
  pkgs,
  ...
}:
...

environment.systemPackages = [
  xivlauncher-rb
];

Optionally you can enable GameMode support:

environment.systemPackages = [
  (xivlauncher-rb.override { useGameMode = true; })
];

or DLSS support:

environment.systemPackages = [
  (xivlauncher-rb.override { nvngxPath = "${config.hardware.nvidia.package}/lib/nvidia/wine"; })
];

or both:

environment.systemPackages = [
  (xivlauncher-rb.override {
    useGameMode = true;
    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.

Credits

About

XIVLauncher-RB for NixOS

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages