nicekoishi / aagl-gtk-on-nix

Run an-anime-game-launcher GTK version on Nix/NixOS!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aagl-gtk-on-nix

Run an-anime-team launchers on Nix/NixOS!

Cachix

It's recommended to set up Cachix so you won't need to build the launchers yourself:

$ nix-shell -p cachix --run "cachix use ezkea"

Alternatively, you can add the Cachix declaratively:

# configuration.nix
{
  nix.settings = {
    substituters = [ "https://ezkea.cachix.org" ];
    trusted-public-keys = [ "ezkea.cachix.org-1:ioBmUbJTZIKsHmWWXPe1FSFbeVe+afhfgqgTSNd34eI=" ];
  };
}

Installation

To install the launchers on NixOS, add the following to configuration.nix:

# configuration.nix
let
  aagl-gtk-on-nix = import (builtins.fetchTarball "https://github.com/ezKEa/aagl-gtk-on-nix/archive/main.tar.gz");
in
{
  imports = [
    aagl-gtk-on-nix.module
  ];

  programs.anime-game-launcher.enable = true;
  programs.honkers-railway-launcher.enable = true;
  programs.honkers-launcher.enable = true;
}

Flakes

Both the Cachix config and NixOS module are accessible via Flakes as well:

{
  inputs = {
    # Other inputs
    aagl.url = "github:ezKEa/aagl-gtk-on-nix";
    aagl.inputs.nixpkgs.follows = "nixpkgs"; # Name of nixpkgs input you want to use
  };

  outputs = { self, nixpkgs, aagl, ... }: {
    nixosConfigurations.your-host = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        # Your system modules
        {
          imports = [ aagl.nixosModules.default ];
          nix.settings = aagl.nixConfig; # Set up Cachix
          programs.anime-game-launcher.enable = true; # Adds launcher and /etc/hosts rules
          programs.honkers-railway-launcher.enable = true;
          programs.honkers-launcher.enable = true;
        }
      ];
    };
  };
}

Home Manager

You can also install the launchers using home-manager.

# home.nix
let
  aagl-gtk-on-nix = import (builtins.fetchTarball "https://github.com/ezKEa/aagl-gtk-on-nix/archive/main.tar.gz");
in
{
  home.packages = [
    aagl-gtk-on-nix.anime-game-launcher
    aagl-gtk-on-nix.honkers-railway-launcher
    aagl-gtk-on-nix.honkers-launcher
  ];
}

Non-NixOS

If you are not running NixOS, append the below hosts to your /etc/hosts file:

0.0.0.0 overseauspider.yuanshen.com
0.0.0.0 log-upload-os.hoyoverse.com

0.0.0.0 log-upload.mihoyo.com
0.0.0.0 uspider.yuanshen.com
0.0.0.0 sg-public-data-api.hoyoverse.com

0.0.0.0 prd-lender.cdp.internal.unity3d.com
0.0.0.0 thind-prd-knob.data.ie.unity3d.com
0.0.0.0 thind-gke-usc.prd.data.corp.unity3d.com
0.0.0.0 cdp.cloud.unity3d.com
0.0.0.0 remote-config-proxy-prd.uca.cloud.unity3d.com

then install through nix-env by running

$ nix-env -f https://github.com/ezKEa/aagl-gtk-on-nix/archive/main.tar.gz -iA anime-game-launcher

Usage

After installation, you can start the launcher by running anime-game-launcher, honkers-railway-launcher, or honkers-launcher. Have fun!

About

Run an-anime-game-launcher GTK version on Nix/NixOS!

License:GNU General Public License v3.0


Languages

Language:Nix 100.0%