diff options
author | Karel Kočí <cynerd@email.cz> | 2024-03-16 14:12:11 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2024-03-16 14:12:11 +0100 |
commit | 7cd40525ff19d9adb6a7540e16a27c955cb1c517 (patch) | |
tree | f65f918ed8f713e13f50296beff119b0eaedfd6f /2024-installfest/switch.nix | |
parent | 64af010c19bae50d19f6626d4138355b2971159e (diff) | |
download | presentations-7cd40525ff19d9adb6a7540e16a27c955cb1c517.tar.gz presentations-7cd40525ff19d9adb6a7540e16a27c955cb1c517.tar.bz2 presentations-7cd40525ff19d9adb6a7540e16a27c955cb1c517.zip |
Add presentation from Installfest 2024
Diffstat (limited to '2024-installfest/switch.nix')
-rw-r--r-- | 2024-installfest/switch.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/2024-installfest/switch.nix b/2024-installfest/switch.nix new file mode 100644 index 0000000..fdd7647 --- /dev/null +++ b/2024-installfest/switch.nix @@ -0,0 +1,29 @@ +{ + networking = { + useNetworkd = true; + useDHCP = false; + nftables.enable = true; + }; + + systemd.network = { + netdevs = { + "brlan".netdevConfig = { + Kind = "bridge"; + Name = "brlan"; + }; + }; + networks = { + "brlan" = { + matchConfig.Name = "brlan"; + networkConfig = { + DHCP = "yes"; + IPv6AcceptRA = "yes"; + }; + }; + "lan-brlan" = { + matchConfig.Name = "lan* end0"; + networkConfig.Bridge = "brlan"; + }; + }; + }; +} |