17 lines
		
	
	
	
		
			335 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			335 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { lib, config, ... }:
 | |
| 
 | |
| let
 | |
|   inherit (lib) types mkIf;
 | |
|   inherit (lib.metacfg) mkOpt enabled;
 | |
| 
 | |
|   cfg = config.metacfg.services.nix-daemon;
 | |
| in
 | |
| {
 | |
|   options.metacfg.services.nix-daemon = {
 | |
|     enable = mkOpt types.bool true "Whether to enable the Nix daemon.";
 | |
|   };
 | |
| 
 | |
|   config = mkIf cfg.enable {
 | |
|     services.nix-daemon = enabled;
 | |
|   };
 | |
| }
 |