mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Change network
This commit is contained in:
parent
e73f27a94c
commit
103f7c4813
2 changed files with 44 additions and 47 deletions
|
|
@ -6,9 +6,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
./steam.nix
|
||||
];
|
||||
imports = [ ./steam.nix ];
|
||||
|
||||
config = lib.mkIf config.mods.containers.enable {
|
||||
virtualisation.docker.enable = true;
|
||||
|
|
@ -18,26 +16,26 @@
|
|||
};
|
||||
networking.nat = {
|
||||
enable = true;
|
||||
internalInterfaces = ["ve-+"];
|
||||
internalInterfaces = [ "ve-+" ];
|
||||
externalInterface = "enp0s31f6";
|
||||
};
|
||||
networking.networkmanager.unmanaged = [ "interface-name:ve-*" ];
|
||||
networking = {
|
||||
bridges.br0.interfaces = [ "enp0s31f6" ]; # Adjust interface accordingly
|
||||
|
||||
# Get bridge-ip with DHCP
|
||||
useDHCP = false;
|
||||
interfaces."br0".useDHCP = true;
|
||||
# networking = {
|
||||
# bridges.br0.interfaces = [ "enp0s31f6" ]; # Adjust interface accordingly
|
||||
|
||||
# Set bridge-ip static
|
||||
interfaces."br0".ipv4.addresses = [{
|
||||
address = "192.168.1.171";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
# # Get bridge-ip with DHCP
|
||||
# useDHCP = false;
|
||||
# interfaces."br0".useDHCP = true;
|
||||
|
||||
defaultGateway = "192.168.1.1";
|
||||
nameservers = [ "192.168.1.1" ];
|
||||
};
|
||||
# # Set bridge-ip static
|
||||
# interfaces."br0".ipv4.addresses = [{
|
||||
# address = "192.168.1.171";
|
||||
# prefixLength = 24;
|
||||
# }];
|
||||
|
||||
# defaultGateway = "192.168.1.1";
|
||||
# nameservers = [ "192.168.1.1" ];
|
||||
# };
|
||||
|
||||
# networking.firewall.allowedTCPPorts = [ 4713 6000 ];
|
||||
# hardware.pulseaudio = {
|
||||
|
|
@ -47,8 +45,6 @@
|
|||
# tcp = { enable = true; anonymousClients = { allowedIpRanges = ["127.0.0.1" "192.168.100.0/24"]; }; };
|
||||
# };
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
xorg.xhost
|
||||
];
|
||||
environment.systemPackages = with pkgs; [ xorg.xhost ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue