mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-10-31 01:32:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			472 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			472 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| # avahi related settings
 | |
| {
 | |
|   config,
 | |
|   lib,
 | |
|   options,
 | |
|   ...
 | |
| }:
 | |
| 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;
 | |
|       nssmdns4 = true;
 | |
|       nssmdns6 = true;
 | |
|       publish = {
 | |
|         enable = true;
 | |
|         addresses = true;
 | |
|         workstation = true;
 | |
|         userServices = true;
 | |
|       };
 | |
|     };
 | |
|   };
 | |
| }
 | 
