35 lines
		
	
	
		
			789 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			789 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { inputs, ... }:
 | |
| {
 | |
|   nix = {
 | |
|     gc = {
 | |
|       automatic = true;
 | |
|       options = "--delete-older-than 2d";
 | |
|     };
 | |
|     optimise.automatic = true;
 | |
| 
 | |
|     settings = {
 | |
|       allow-dirty = true;
 | |
|       builders-use-substitutes = true;
 | |
|       experimental-features = [ "nix-command" "flakes" ];
 | |
|       log-lines = 50;
 | |
|       use-xdg-base-directories = true;
 | |
|     };
 | |
| 
 | |
|     /* This makes commandline tools like
 | |
|     ** nix run nixpkgs#hello
 | |
|     ** and nix-shell -p hello
 | |
|     ** use the same channel the system
 | |
|     ** was built with
 | |
|     */
 | |
|     registry = {
 | |
|       "nixpkgs".flake = inputs.nixpkgs;
 | |
|       "nixpkgs-unstable".flake = inputs.nixpkgs-unstable;
 | |
|       "pvv-nix".flake = inputs.self;
 | |
|     };
 | |
|     nixPath = [
 | |
|       "nixpkgs=${inputs.nixpkgs}"
 | |
|       "unstable=${inputs.nixpkgs-unstable}"
 | |
|     ];
 | |
|   };
 | |
| }
 |