2024-06-16 22:43:34 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
2024-07-24 18:47:53 +02:00
|
|
|
}: let
|
2024-07-15 23:18:25 +02:00
|
|
|
inherit (config.poz.other.system) username;
|
2024-07-24 18:47:53 +02:00
|
|
|
|
2024-08-25 20:17:14 +02:00
|
|
|
inherit (lib.attrsets) attrValues;
|
2024-07-24 18:47:53 +02:00
|
|
|
inherit (lib.meta) getExe;
|
|
|
|
in {
|
2024-08-25 20:17:14 +02:00
|
|
|
environment.systemPackages = attrValues {
|
|
|
|
inherit (pkgs)
|
|
|
|
gns3-gui
|
|
|
|
gns3-server
|
|
|
|
dynamips
|
|
|
|
xterm
|
|
|
|
inetutils
|
|
|
|
vpcs
|
|
|
|
;
|
|
|
|
};
|
2024-06-16 22:43:34 +02:00
|
|
|
|
2024-07-24 18:47:53 +02:00
|
|
|
users.users.${username} = {
|
2024-06-16 22:43:34 +02:00
|
|
|
extraGroups = [ "ubridge" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# services.gns3-server = {
|
|
|
|
# enable = true;
|
|
|
|
# ubridge.enable = true;
|
|
|
|
# };
|
|
|
|
|
|
|
|
users.groups.ubridge = {};
|
|
|
|
|
|
|
|
security.wrappers.ubridge = {
|
2024-07-24 18:47:53 +02:00
|
|
|
source = getExe pkgs.ubridge;
|
2024-06-16 22:43:34 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|