programs: add gns3
This commit is contained in:
parent
b844c980f9
commit
0783c48310
2 changed files with 27 additions and 0 deletions
options/custom/programs
|
@ -57,6 +57,7 @@ with lib; {
|
|||
#// gnome-shell.enable = true;
|
||||
#// goldwarden.enable = true;
|
||||
gpg.enable = true;
|
||||
#// gns3.enable = true;
|
||||
#// gtklock.enable = true;
|
||||
hyprlock.enable = true;
|
||||
libreoffice.enable = true;
|
||||
|
|
26
options/custom/programs/gns3.nix
Normal file
26
options/custom/programs/gns3.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.custom.programs.gns3;
|
||||
in {
|
||||
options.custom.programs.gns3 = {
|
||||
enable = mkEnableOption "gns3";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# https://www.gns3.com/
|
||||
# https://github.com/GNS3/gns3-gui
|
||||
# https://wiki.nixos.org/wiki/GNS3
|
||||
# https://wiki.archlinux.org/title/GNS3
|
||||
environment.systemPackages = [pkgs.gns3-gui];
|
||||
|
||||
services.gns3-server = {
|
||||
enable = true;
|
||||
dynamips.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue