mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-10-31 01:32:11 +01:00 
			
		
		
		
	
		
			
	
	
		
			24 lines
		
	
	
	
		
			481 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
	
		
			481 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
|   | { config, lib, pkgs, ... }: | ||
|  | let | ||
|  |   cfg = config.my.profiles.printing; | ||
|  | in | ||
|  | { | ||
|  |   options.my.profiles.printing = with lib; { | ||
|  |     enable = mkEnableOption "printing profile"; | ||
|  |   }; | ||
|  | 
 | ||
|  |   config = lib.mkIf cfg.enable { | ||
|  |     services.printing.enable = true; | ||
|  |     services.printing.drivers = with pkgs; [ | ||
|  |       canon-cups-ufr2 | ||
|  |       gutenprint | ||
|  |       hplip | ||
|  |     ]; | ||
|  |     programs.system-config-printer.enable = true; | ||
|  | 
 | ||
|  |     environment.systemPackages = with pkgs; [ | ||
|  |       gnome.simple-scan | ||
|  |     ]; | ||
|  |   }; | ||
|  | } |