nix-serve: serve nix-store as binary cache
This commit is contained in:
		
							parent
							
								
									110407e600
								
							
						
					
					
						commit
						fb3cf428fc
					
				
					 3 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
					@ -85,6 +85,7 @@
 | 
				
			||||||
          modules = [
 | 
					          modules = [
 | 
				
			||||||
            ./hosts/monolith.nix
 | 
					            ./hosts/monolith.nix
 | 
				
			||||||
            ./system/gitlab-runner.nix
 | 
					            ./system/gitlab-runner.nix
 | 
				
			||||||
 | 
					            ./system/nix-serve.nix
 | 
				
			||||||
            ./system/btusb-kernel-patches.nix
 | 
					            ./system/btusb-kernel-patches.nix
 | 
				
			||||||
            ./system/amdgpu-kernel-patches.nix
 | 
					            ./system/amdgpu-kernel-patches.nix
 | 
				
			||||||
          ] ++ common_modules;
 | 
					          ] ++ common_modules;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -140,11 +140,13 @@
 | 
				
			||||||
    settings = {
 | 
					    settings = {
 | 
				
			||||||
      auto-optimise-store = true;
 | 
					      auto-optimise-store = true;
 | 
				
			||||||
      substituters = [
 | 
					      substituters = [
 | 
				
			||||||
 | 
					        "https://nixcache.lelgenio.1337.cx:5000"
 | 
				
			||||||
        "https://hyprland.cachix.org"
 | 
					        "https://hyprland.cachix.org"
 | 
				
			||||||
        "https://lelgenio.cachix.org"
 | 
					        "https://lelgenio.cachix.org"
 | 
				
			||||||
        "https://wegank.cachix.org"
 | 
					        "https://wegank.cachix.org"
 | 
				
			||||||
      ];
 | 
					      ];
 | 
				
			||||||
      trusted-public-keys = [
 | 
					      trusted-public-keys = [
 | 
				
			||||||
 | 
					        "nixcache.lelgenio.1337.cx:zxCfx7S658llDgAUG0JVyNrlAdFVvPniSdDOkvfTPS8="
 | 
				
			||||||
        "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
 | 
					        "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
 | 
				
			||||||
        "lelgenio.cachix.org-1:W8tMlmDFLU/V+6DlChXjekxoHZpjgVHZpmusC4cueBc="
 | 
					        "lelgenio.cachix.org-1:W8tMlmDFLU/V+6DlChXjekxoHZpjgVHZpmusC4cueBc="
 | 
				
			||||||
        "wegank.cachix.org-1:xHignps7GtkPP/gYK5LvA/6UFyz98+sgaxBSy7qK0Vs="
 | 
					        "wegank.cachix.org-1:xHignps7GtkPP/gYK5LvA/6UFyz98+sgaxBSy7qK0Vs="
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										6
									
								
								system/nix-serve.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								system/nix-serve.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					{ config, pkgs, lib, ... }: {
 | 
				
			||||||
 | 
					  services.nix-serve = {
 | 
				
			||||||
 | 
					    enable = true;
 | 
				
			||||||
 | 
					    secretKeyFile = "/var/cache-priv-key.pem";
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue