File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed
Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1111 self . nixosModules . profile-tsrk-common
1212 self . nixosModules . gamescope
1313 self . nixosModules . hyprland
14+ self . nixosModules . gns3
1415 ( self . lib . generateFullUser "tsrk" {
1516 canSudo = true ;
1617 hashedPasswordFile = config . age . secrets . zpasswd . path ;
3334 focusriteSupport = true ;
3435 } ;
3536
37+ tsrk . gns3 . enable = true ;
38+
3639 tsrk . packages . pkgs . java . jdk . extraPackages = with pkgs ; [ temurin-jre-bin-17 ] ;
3740
3841 time . hardwareClockInLocalTime = true ;
Original file line number Diff line number Diff line change 1313 ./services/hardware/bluetooth.nix
1414 ./services/hardware/disks.nix
1515 ./services/networking/sshd
16+ ./services/networking/gns3.nix
1617 ./services/system/earlyoom
1718 ./services/virtualisation/containers
1819 ./services/virtualisation/libvirt.nix
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2025 tsrk. <tsrk@tsrk.me>
2+ # This file is licensed under the MIT license
3+ # See the LICENSE file in the repository root for more info.
4+
5+ # SPDX-License-Identifier: MIT
6+
7+ { config , lib , pkgs , ... } :
8+
9+ let cfg = config . tsrk . gns3 ;
10+ in {
11+ options = {
12+ tsrk . gns3 = { enable = lib . options . mkEnableOption "tsrk's GNS3 setup" ; } ;
13+ } ;
14+
15+ config = lib . mkIf cfg . enable {
16+ environment . systemPackages = with pkgs ; [ gns3-gui vpcs ] ;
17+
18+ services . gns3-server = {
19+ enable = true ;
20+ vpcs . enable = lib . mkDefault true ;
21+ ubridge . enable = lib . mkDefault true ;
22+ } ;
23+ } ;
24+ }
You can’t perform that action at this time.
0 commit comments