migrate arma configs to module
This commit is contained in:
parent
83e62adf85
commit
69e69c2b7f
3 changed files with 78 additions and 30 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue