mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 16:17:46 +00:00
25 lines
539 B
Nix
25 lines
539 B
Nix
{ pkgs, lib, config, ... }: {
|
|
options.mods.containers = {
|
|
enable = lib.mkEnableOption {
|
|
default = false;
|
|
description = "enables steam container";
|
|
};
|
|
};
|
|
|
|
imports = [
|
|
./steam.nix
|
|
];
|
|
|
|
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
|
|
];
|
|
};
|
|
}
|