Skip to content

drakon64/nixos-xivlauncher-rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 = 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
];

Overrides

GameMode

environment.systemPackages = [
  (inputs.nixos-xivlauncher-rb.packages.x86_64-linux.default.override { useGameMode = true; })
];

DLSS

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.

Credits

About

XIVLauncher-RB for NixOS

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages