52 lines
989 B
Nix
52 lines
989 B
Nix
{
|
|
flake,
|
|
modulesPath,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
inherit (flake) inputs;
|
|
inherit (inputs) self;
|
|
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 -"
|
|
];
|
|
|
|
deploy = {
|
|
enable = false;
|
|
};
|
|
networking = {
|
|
hostName = "arma-reforger-tofu";
|
|
firewall = {
|
|
enable = true;
|
|
allowedUDPPorts = [ 2001 17777 19999 ];
|
|
};
|
|
};
|
|
environment.systemPackages = [
|
|
pkgs.steamcmd
|
|
pkgs.curl
|
|
];
|
|
system.stateVersion = "25.05";
|
|
}
|