Compare commits
No commits in common. "b24fa7ce4040b87c45ba017d3523e89ff160723f" and "184d58b5b592176d83c4b18ea4bf2c352b971afe" have entirely different histories.
b24fa7ce40
...
184d58b5b5
3 changed files with 10 additions and 22 deletions
|
|
@ -16,12 +16,6 @@ in
|
|||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
steamcmd
|
||||
curl
|
||||
steam-run
|
||||
];
|
||||
nixpkgs.config.allowUnfreePredicate =
|
||||
pkg:
|
||||
builtins.elem (lib.getName pkg) [
|
||||
|
|
@ -41,7 +35,7 @@ in
|
|||
groups.steam = { };
|
||||
};
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${cfg.dataDir}/reforger 0755 steam steam -"
|
||||
# "d /var/lib/steam 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 -"
|
||||
|
|
@ -53,17 +47,16 @@ 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 = "${lib.getExe pkgs.steam-run} ${cfg.dataDir}/reforger/ArmaReforgerServer -config ${cfg.dataDir}/reforger/Configs/default.json -maxFPS 60";
|
||||
ExecStart = "${pkgs.arma-scripts}/scripts/start.sh";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,9 +5,4 @@
|
|||
imports = [
|
||||
flake.inputs.self.nixosModules.common
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
tmux
|
||||
neovim
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@ fetchFromGitea {
|
|||
domain = "git.skdevstudios.com";
|
||||
owner = "SK-Development-Studios";
|
||||
repo = "ground-zero-conflict-configuration";
|
||||
rev = "v0.0.4";
|
||||
sha256 = "sha256-DVUACc7VufT3FcUxBTcAJAoH6mIE3XUTCI6ftpgJT3c=";
|
||||
rev = "v0.0.2";
|
||||
sha256 = "sha256-bZaEkrlAuQCm9/AEt+Lkzxf5FOiyvYb6jclG5xeeBok=";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue