Skip to content

Instantly share code, notes, and snippets.

@mutantmell
mutantmell / network.nix
Last active October 16, 2024 01:43
NixOS Router data-driven configuration
{ config, pkgs, lib, ... }:
let
# There were two main sources of inspiration for this configuration:
# 1. https://pavluk.org/blog/2022/01/26/nixos_router.html
# 2. https://francis.begyn.be/blog/nixos-home-router
# Thank you very much!
#
# network types:
# { type = "none"; } # Don't generate a network file