mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
Added VM with bridge
This commit is contained in:
@@ -1,8 +1,20 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
networking.firewall.allowedUDPPorts = [ 8000 ];
|
networking.firewall.allowedUDPPorts = [ 8000 23 ];
|
||||||
networking.firewall.allowedTCPPorts = [ 8000 ];
|
networking.firewall.allowedTCPPorts = [ 8000 23 ];
|
||||||
|
networking.useDHCP = false;
|
||||||
|
networking.bridges = {
|
||||||
|
"br0" = {
|
||||||
|
interfaces = [ "eno1" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
networking.interfaces.br0.ipv4.addresses = [{
|
||||||
|
address = "192.168.1.235";
|
||||||
|
prefixLength = 24;
|
||||||
|
}];
|
||||||
|
networking.defaultGateway = "192.168.1.1";
|
||||||
|
networking.nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
hardware.bluetooth.powerOnBoot = true;
|
hardware.bluetooth.powerOnBoot = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
kitty
|
kitty
|
||||||
mpv
|
mpv
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
|
virt-manager
|
||||||
] ++ (if gamingSystem then [
|
] ++ (if gamingSystem then [
|
||||||
archipelago
|
archipelago
|
||||||
dolphin-emu
|
dolphin-emu
|
||||||
|
|||||||
Reference in New Issue
Block a user