2018-11-21 23:33:10 +00:00
|
|
|
# Global configuration for mininet
|
|
|
|
# kernel must have NETNS/VETH/SCHED
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2023-11-27 03:29:51 +00:00
|
|
|
cfg = config.programs.mininet;
|
2018-11-21 23:33:10 +00:00
|
|
|
in
|
|
|
|
{
|
2024-04-17 11:37:58 +00:00
|
|
|
options.programs.mininet.enable = lib.mkEnableOption "Mininet, an emulator for rapid prototyping of Software Defined Networks";
|
2018-11-21 23:33:10 +00:00
|
|
|
|
2024-04-17 11:37:58 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2018-11-21 23:33:10 +00:00
|
|
|
|
|
|
|
virtualisation.vswitch.enable = true;
|
|
|
|
|
2023-12-07 07:19:00 +00:00
|
|
|
environment.systemPackages = [ pkgs.mininet ];
|
2018-11-21 23:33:10 +00:00
|
|
|
};
|
|
|
|
}
|