moving cachix to make pure flake
This commit is contained in:
		
							parent
							
								
									f9139f1b85
								
							
						
					
					
						commit
						0e581ca1f1
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		
							
								
								
									
										13
									
								
								cachix/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								cachix/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,13 @@
 | 
			
		|||
 | 
			
		||||
# WARN: this file will get overwritten by $ cachix use <name>
 | 
			
		||||
{ pkgs, lib, ... }:
 | 
			
		||||
 | 
			
		||||
let
 | 
			
		||||
  folder = ./cachix;
 | 
			
		||||
  toImport = name: value: folder + ("/" + name);
 | 
			
		||||
  filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key;
 | 
			
		||||
  imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
 | 
			
		||||
in {
 | 
			
		||||
  inherit imports;
 | 
			
		||||
  nix.settings.substituters = ["https://cache.nixos.org/"];
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue