From 1825424cbbd4cfdc93ef8ba73df96146c168caf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madeleine=20Sydney=20=C5=9Alaga?= Date: Tue, 31 Mar 2026 12:44:36 -0600 Subject: [PATCH] feat: gtav battleye workaround --- hosts/sydpc/configuration.nix | 1 + modules/nixos/gtav-battleye-hack.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 modules/nixos/gtav-battleye-hack.nix diff --git a/hosts/sydpc/configuration.nix b/hosts/sydpc/configuration.nix index fe824c5..a8f8b66 100755 --- a/hosts/sydpc/configuration.nix +++ b/hosts/sydpc/configuration.nix @@ -21,6 +21,7 @@ stylix.enable = true; qemu.enable = true; flatpak.enable = true; + gtav-battleye-hack.enable = true; # gdm.enable = true; openssh.enable = true; sydpkgs.overlay.enable = true; diff --git a/modules/nixos/gtav-battleye-hack.nix b/modules/nixos/gtav-battleye-hack.nix new file mode 100644 index 0000000..49bccb7 --- /dev/null +++ b/modules/nixos/gtav-battleye-hack.nix @@ -0,0 +1,17 @@ +{ config, lib, pkgs, ... }: + +let cfg = config.sydnix.gtav-battleye-hack; +in { + options.sydnix.gtav-battleye-hack = { + enable = lib.mkEnableOption + "Grand Theft Auto V Online BattlEye workaround"; + }; + + config = lib.mkIf cfg.enable { + networking.hosts."0.0.0.0" = [ + "paradise-s1.battleye.com" + "test-s1.battleye.com" + "paradiseenhanced-s1.battleye.com" + ]; + }; +}