1 # Global configuration for mininet
2 # kernel must have NETNS/VETH/SCHED
3 { config, lib, pkgs, ... }:
6 cfg = config.programs.mininet;
9 options.programs.mininet.enable = lib.mkEnableOption "Mininet, an emulator for rapid prototyping of Software Defined Networks";
11 config = lib.mkIf cfg.enable {
13 virtualisation.vswitch.enable = true;
15 environment.systemPackages = [ pkgs.mininet ];