mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-10-31 01:32:11 +01:00 
			
		
		
		
	
		
			
	
	
		
			17 lines
		
	
	
	
		
			316 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
		
		
			
		
	
	
			17 lines
		
	
	
	
		
			316 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
|   | { config, lib, pkgs, ... }: | ||
|  | let | ||
|  |   cfg = config.my.profiles.webcam; | ||
|  | in | ||
|  | { | ||
|  |   options.my.profiles.webcam = with lib; { | ||
|  |     enable = mkEnableOption "webcam profile"; | ||
|  |   }; | ||
|  | 
 | ||
|  |   config = lib.mkIf cfg.enable { | ||
|  |     environment.systemPackages = with pkgs; [ | ||
|  |       fswebcam | ||
|  |       # gnome.cheese does no longer work | ||
|  |     ]; | ||
|  |   }; | ||
|  | } |