niksos/options/desktop/gns3.nix

41 lines
818 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (config.poz.other.system) username;
inherit (lib.attrsets) attrValues;
inherit (lib.meta) getExe;
in {
environment.systemPackages = attrValues {
inherit (pkgs)
gns3-gui
gns3-server
dynamips
xterm
inetutils
vpcs
;
};
users.users.${username} = {
extraGroups = [ "ubridge" ];
};
# services.gns3-server = {
# enable = true;
# ubridge.enable = true;
# };
users.groups.ubridge = {};
security.wrappers.ubridge = {
source = getExe pkgs.ubridge;
capabilities = "cap_net_admin,cap_net_raw=ep";
owner = "root";
group = "ubridge";
permissions = "u=rwx,g=rx,o=rx";
};
}