mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-10-31 09:42:11 +01:00 
			
		
		
		
	
		
			
	
	
		
			24 lines
		
	
	
	
		
			454 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
	
		
			454 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
|   | # avahi related settings | ||
|  | { config, inputs, lib, options, pkgs, ... }: | ||
|  | let | ||
|  |   cfg = config.my.system.avahi; | ||
|  | in | ||
|  | { | ||
|  |   options.my.system.avahi = with lib; { | ||
|  |     enable = mkEnableOption "avahi configuration"; | ||
|  |   }; | ||
|  | 
 | ||
|  |   config = lib.mkIf cfg.enable { | ||
|  |     services.avahi = { | ||
|  |       enable = true; | ||
|  |       nssmdns = true; | ||
|  |       publish = { | ||
|  |         enable = true; | ||
|  |         addresses = true; | ||
|  |         workstation = true; | ||
|  |         userServices = true; | ||
|  |       }; | ||
|  |     }; | ||
|  |   }; | ||
|  | } |