mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Fix steam container
This commit is contained in:
parent
7418b379a1
commit
29b570a782
3 changed files with 75 additions and 7 deletions
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue