migrate arma configs to module
Some checks failed
/ check (push) Failing after 6s
/ deploy (push) Has been skipped

This commit is contained in:
Jermeiah S 2025-07-01 13:53:12 -04:00
parent 83e62adf85
commit 69e69c2b7f
No known key found for this signature in database
3 changed files with 78 additions and 30 deletions

View file

@ -3,6 +3,7 @@
modulesPath,
config,
pkgs,
lib,
...
}:
@ -13,40 +14,15 @@ in
{
imports = [
self.nixosModules.default
"${modulesPath}/virtualisation/lxc-container.nix"
];
# Create steam user
users = {
users.steam = {
isNormalUser = true;
home = "/var/lib/steam";
createHome = true;
shell = pkgs.bash;
group = "steam";
};
groups.steam = {};
};
systemd.tmpfiles.rules = [
"d /var/lib/steam 0755 steam steam -"
"d /var/lib/steam/reforger/configs/ 0755 steam steam -"
"d /var/lib/steam/reforger/profile/ 0755 steam steam -"
"d /var/lib/steam/reforger/workshop/ 0755 steam steam -"
# "${modulesPath}/virtualisation/lxc-container.nix"
];
deploy = {
enable = false;
};
services.arma.enable = true;
networking = {
hostName = "arma-reforger-tofu";
firewall = {
enable = true;
allowedUDPPorts = [ 2001 17777 19999 ];
};
};
environment.systemPackages = [
pkgs.steamcmd
pkgs.curl
];
# environment.systemPackages = with pkgs; [
# ];
system.stateVersion = "25.05";
}