flake/modules/nixos/server/containers/steam.nix
2024-06-20 19:38:27 +00:00

28 lines
619 B
Nix

{ pkgs, lib, ... }: {
options.mods.containers.steam = {
enable = lib.mkEnableOption {
default = false;
description = "enables steam container";
};
};
config = lib.mkIf config.mods.container.steam.enable {
mods.containers.enable = true;
containers.steam = {
privateNetwork = true;
hostAddress = "192.168.1.107";
localAddress = "192.168.1.57";
config = { config, pkgs, lib, ... }: {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
};
system.stateVersion = "23.11";
};
};
};
}