fix: arma now is run directly packages are global
This commit is contained in:
parent
184d58b5b5
commit
d512b64f41
2 changed files with 17 additions and 10 deletions
|
|
@ -16,6 +16,12 @@ in
|
|||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
steamcmd
|
||||
curl
|
||||
steam-run
|
||||
];
|
||||
nixpkgs.config.allowUnfreePredicate =
|
||||
pkg:
|
||||
builtins.elem (lib.getName pkg) [
|
||||
|
|
@ -35,7 +41,7 @@ in
|
|||
groups.steam = { };
|
||||
};
|
||||
systemd.tmpfiles.rules = [
|
||||
# "d /var/lib/steam 0755 steam steam -"
|
||||
"d ${cfg.dataDir}/reforger 0755 steam steam -"
|
||||
"d ${cfg.dataDir}/reforger/configs 0755 steam steam -"
|
||||
"d ${cfg.dataDir}/reforger/profile 0755 steam steam -"
|
||||
"d ${cfg.dataDir}/reforger/workshop 0755 steam steam -"
|
||||
|
|
@ -47,16 +53,17 @@ in
|
|||
environment = {
|
||||
ARMA_DIR = "${cfg.dataDir}";
|
||||
};
|
||||
path = with pkgs; [
|
||||
curl
|
||||
steamcmd
|
||||
steam-run
|
||||
];
|
||||
preStart = "${pkgs.arma-scripts}/scripts/update.sh";
|
||||
# path = with pkgs; [
|
||||
# curl
|
||||
# steamcmd
|
||||
# steam-run
|
||||
# ];
|
||||
# preStart = "${pkgs.arma-scripts}/scripts/update.sh";
|
||||
serviceConfig = {
|
||||
User = "steam";
|
||||
TimeoutStartSec = "infinity";
|
||||
WorkingDirectory = "${cfg.dataDir}/reforger";
|
||||
ExecStart = "${pkgs.arma-scripts}/scripts/start.sh";
|
||||
ExecStart = "${lib.getExe pkgs.steam-run} ${cfg.dataDir}/reforger/ArmaReforgerServer -config ${cfg.dataDir}/reforger/Configs/default.json -maxFPS 60";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@ fetchFromGitea {
|
|||
domain = "git.skdevstudios.com";
|
||||
owner = "SK-Development-Studios";
|
||||
repo = "ground-zero-conflict-configuration";
|
||||
rev = "v0.0.2";
|
||||
sha256 = "sha256-bZaEkrlAuQCm9/AEt+Lkzxf5FOiyvYb6jclG5xeeBok=";
|
||||
rev = "v0.0.4";
|
||||
sha256 = "sha256-DVUACc7VufT3FcUxBTcAJAoH6mIE3XUTCI6ftpgJT3c=";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue