2024-06-16 22:43:34 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
gns3-gui
|
|
|
|
gns3-server
|
|
|
|
dynamips
|
|
|
|
xterm
|
|
|
|
inetutils
|
2024-06-17 22:52:47 +02:00
|
|
|
vpcs
|
2024-06-16 22:43:34 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
users.users.${config.myOptions.other.system.username} = {
|
|
|
|
extraGroups = [ "ubridge" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# services.gns3-server = {
|
|
|
|
# enable = true;
|
|
|
|
# ubridge.enable = true;
|
|
|
|
# };
|
|
|
|
|
|
|
|
users.groups.ubridge = {};
|
|
|
|
|
|
|
|
security.wrappers.ubridge = {
|
|
|
|
source = lib.getExe pkgs.ubridge;
|
|
|
|
capabilities = "cap_net_admin,cap_net_raw=ep";
|
|
|
|
owner = "root";
|
|
|
|
group = "ubridge";
|
|
|
|
permissions = "u=rwx,g=rx,o=rx";
|
2024-06-10 23:07:00 +02:00
|
|
|
};
|
|
|
|
}
|