Fix steam container

This commit is contained in:
muon 2024-06-20 23:06:24 +00:00
parent 7418b379a1
commit 29b570a782
3 changed files with 75 additions and 7 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, lib, ... }: {
{ pkgs, lib, config, ... }: {
options.mods.containers = {
enable = lib.mkEnableOption {
default = false;
@ -10,12 +10,16 @@
./steam.nix
];
config = lib.mkIf config.mods.container.enable {
config = lib.mkIf config.mods.containers.enable {
networking.nat = {
enable = true;
internalInterfaces = ["ve-+"];
externalInterface = "enp0s31f6";
};
networking.networkmanager.unmanaged = [ "interface-name:ve-*" ];
environment.systemPackages = with pkgs; [
xorg.xhost
];
};
}