Advertisement
Guest User

Untitled

a guest
Nov 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     nixpkgs.config.packageOverrides = pkgs: {
  2.         wine = pkgs.wine.override {        
  3.           wineRelease = "staging"; # "stable", "unstable", "staging"
  4.           wineBuild  = "wine64"; # "wine32", "wine64", "wineWow" };
  5.       };
  6.  
  7.    systemd.services.dzServer = {
  8.      
  9.       after = [ "dzServerInit.service" ];
  10.       description = "DayZServer";
  11.       restartIfChanged  = true;
  12.       environment = {WINEARCH = "win64"; WINEPREFIX = "/root/.wine64"; };
  13.        
  14.       serviceConfig  = {        
  15.          
  16.           #ExecStart = "${pkgs.xvfb_run }/bin/xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' ${pkgs.wine}/bin/wine ${cfg.varPath}/DayZServer_x64.exe ${cfg.profilePath}/serverDZ.cfg -port=${cfg.port} -BEpath=battleye -profiles=${cfg.profilePath} -dologs -netlog -adminlog -enDebugPlayerPositions=1";
  17.           ExecStart = "${pkgs.xvfb_run }/bin/xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' ${pkgs.wine}/bin/wine ${cfg.varPath}/DayZServer_x64.exe ${cfg.profilePath}/dzServer.cfg -port=${cfg.port} -BEpath=battleye -profiles=${cfg.profilePath} -dologs -netlog -adminlog -enDebugPlayerPositions=1";
  18.           WorkingDirectory ="${cfg.varPath}";
  19.           Restart = "always";
  20.       };
  21.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement