2020-04-24 23:36:52 +00:00
|
|
|
# Global configuration for mininet
|
|
|
|
# kernel must have NETNS/VETH/SCHED
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2024-01-02 11:29:13 +00:00
|
|
|
cfg = config.programs.mininet;
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
{
|
2024-05-15 15:35:15 +00:00
|
|
|
options.programs.mininet.enable = lib.mkEnableOption "Mininet, an emulator for rapid prototyping of Software Defined Networks";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
virtualisation.vswitch.enable = true;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
environment.systemPackages = [ pkgs.mininet ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|