forked from jan-leila/nix-config
		
	organized flake.nix
This commit is contained in:
		
							parent
							
								
									a0de710c44
								
							
						
					
					
						commit
						3530ee07d7
					
				
					 1 changed files with 10 additions and 1 deletions
				
			
		
							
								
								
									
										11
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								flake.nix
									
										
									
									
									
								
							|  | @ -2,21 +2,30 @@ | |||
|   description = "Nixos config flake"; | ||||
| 
 | ||||
|   inputs = { | ||||
|     # base packages | ||||
|     nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | ||||
| 
 | ||||
|     # encrypt files that contain secreats that I would like to not encrypt | ||||
|     sops-nix.url = "github:Mic92/sops-nix"; | ||||
| 
 | ||||
|     # managment per user | ||||
|     home-manager = { | ||||
|       url = "github:nix-community/home-manager"; | ||||
|       inputs.nixpkgs.follows = "nixpkgs"; | ||||
|     }; | ||||
| 
 | ||||
|     # repo of hardware configs for prebuilt systems | ||||
|     nixos-hardware.url = "github:NixOS/nixos-hardware/master"; | ||||
|   }; | ||||
| 
 | ||||
|   outputs = { self, nixpkgs, nixos-hardware, ... }@inputs: | ||||
|     let | ||||
|       forEachSystem = nixpkgs.lib.genAttrs [ "x86_64-linux" ]; | ||||
|       forEachSystem = nixpkgs.lib.genAttrs [ | ||||
|         "aarch64-darwin" | ||||
|         "aarch64-linux" | ||||
|         "x86_64-darwin" | ||||
|         "x86_64-linux" | ||||
|       ]; | ||||
|       forEachPkgs = lambda: forEachSystem (system: lambda nixpkgs.legacyPackages.${system}); | ||||
|     in | ||||
|     { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue