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" + ]; + }; +}