34 lines
669 B
Nix
34 lines
669 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
environment.systemPackages = with pkgs; [
|
|
gns3-gui
|
|
gns3-server
|
|
dynamips
|
|
xterm
|
|
inetutils
|
|
vpcs
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|