Skip to content

hyprwm/hyprland-infra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyprland-infra

Hyprland Nix infrastructure. Contains non-critical services, which include but is not limited to:

  • Typhon (Nix build service)

Networking setup

Creating a bridge on the host

A bridge is needed to preserve bidirectional connectivity between the host and the guest.

Get the current connection's link name. We'll use <eth0> throughout this file.

$ nmcli con show
$ nmcli con add ifname br0 type bridge con-name br0
$ nmcli con add type bridge-slave ifname <eth0> master br0

If using DHCP:

$ nmcli con mod br0 ipv4.method auto

If using static IPs:

$ nmcli con mod br0 ipv4.method manual
$ nmcli con mod br0 ipv4.addresses 10.1.1.16/24
$ nmcli con mod br0 ipv4.gateway 10.1.1.1
$ nmcli con mod br0 ipv4.dns '10.1.1.1,1.1.1.1'

We do not need Spanning Tree Protocol, disable it:

$ nmcli con mod br0 bridge.stp no

Turn up the bridge:

$ nmcli con down <eth0>
$ nmcli con up br0

To disable <eth0> autoconnect and let the bridge do the connection instead:

$ nmcli con mod <eth0> connection.autoconnect no

Setting up QEMU to allow bridges

In /etc/qemu/bridge.conf write allow br0.

About

Hyprland Nix infrastructure

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published