mirror of
				https://github.com/Jokiller230/puzzlevision.git
				synced 2025-10-31 05:40:05 +00:00 
			
		
		
		
	✨ Add packettracer home module
This commit is contained in:
		
							parent
							
								
									1e94d11ce0
								
							
						
					
					
						commit
						8edd189f07
					
				
					 3 changed files with 38 additions and 3 deletions
				
			
		
							
								
								
									
										9
									
								
								homes/x86_64-linux/jo/apps/packettracer/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								homes/x86_64-linux/jo/apps/packettracer/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | |||
| { | ||||
|   ... | ||||
| }: | ||||
| { | ||||
|   puzzlevision.apps.packettracer = { | ||||
|     enable = true; | ||||
|     binaryPath = ./Packet_Tracer822_amd64_signed.deb; | ||||
|   }; | ||||
| } | ||||
|  | @ -8,6 +8,7 @@ | |||
|     ./apps/discord | ||||
|     ./apps/firefox | ||||
|     ./apps/vicinae | ||||
|     ./apps/packettracer | ||||
|   ]; | ||||
| 
 | ||||
|   puzzlevision = { | ||||
|  | @ -28,9 +29,6 @@ | |||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   # Notify on systembus events | ||||
|   services.systembus-notify.enable = true; | ||||
| 
 | ||||
|   sops.secrets.wakatime-cfg = { | ||||
|     format = "binary"; | ||||
|     sopsFile = ./secrets/wakatime.cfg; | ||||
|  |  | |||
							
								
								
									
										28
									
								
								modules/home/apps/packettracer/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								modules/home/apps/packettracer/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,28 @@ | |||
| { | ||||
|   config, | ||||
|   self, | ||||
|   pkgs, | ||||
|   lib, | ||||
|   ... | ||||
| }: | ||||
| let | ||||
|   inherit (self) namespace; | ||||
|   inherit (self.lib) mkOpt; | ||||
|   inherit (lib) mkEnableOption types mkIf; | ||||
| 
 | ||||
|   cfg = config.${namespace}.apps.packettracer; | ||||
| in | ||||
| { | ||||
|   options.${namespace}.apps.packettracer = { | ||||
|     enable = mkEnableOption "the Cisco Packettracer application, a network emulator."; | ||||
|     binaryPath = | ||||
|       mkOpt types.path null | ||||
|         "The path of the Packettracer binary. Has to be downloaded from Cisco Netacad"; | ||||
|   }; | ||||
| 
 | ||||
|   config = mkIf cfg.enable { | ||||
|     home.packages = with pkgs; [ | ||||
|       (ciscoPacketTracer8.override { packetTracerSource = cfg.binaryPath; }) | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue