mirror of
https://codeberg.org/muon/home.git
synced 2026-03-09 03:53:11 +00:00
Add steam container
This commit is contained in:
parent
771dd91ead
commit
7418b379a1
4 changed files with 55 additions and 0 deletions
28
modules/nixos/server/containers/steam.nix
Normal file
28
modules/nixos/server/containers/steam.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue