overlays: Fix allowUnfree
This commit is contained in:
		
							parent
							
								
									8aa0c19ba6
								
							
						
					
					
						commit
						2bdb6d7f76
					
				| @ -131,6 +131,8 @@ let | ||||
|     fonts.fonts = with pkgs; [ | ||||
|       # CJK fonts | ||||
|       source-han-sans source-han-serif | ||||
|       # Coding fonts | ||||
|       source-code-pro | ||||
|     ]; | ||||
| 
 | ||||
|     # We don't tolerate non-free software, except for Steam and Linux firmware | ||||
| @ -139,7 +141,6 @@ let | ||||
|       "steam" "steam-original" "steam-runtime" | ||||
|       "discord" | ||||
|     ]; | ||||
|     nixpkgs.config.allowUnfree = true; | ||||
| 
 | ||||
|     services = { | ||||
|       connman = { | ||||
|  | ||||
| @ -1,5 +1,7 @@ | ||||
| # NOTE: pkgs is unused but there for consistency with nur.nix | ||||
| pkgs: final: prev: | ||||
| { | ||||
|   lib, ... | ||||
| }: final: prev: | ||||
| 
 | ||||
| let | ||||
|   unstableTarball = | ||||
| @ -8,10 +10,12 @@ let | ||||
| in { | ||||
|   unstable = import unstableTarball { | ||||
|     # TODO | ||||
|    #allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ | ||||
|    #  "firmwareLinuxNonfree" "microcodeAmd" "microcodeIntel" | ||||
|    #  "steam" "steam-original" "steam-runtime" | ||||
|    #  "discord" | ||||
|    #]; | ||||
|     config = { | ||||
|       allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ | ||||
|         "firmwareLinuxNonfree" "microcodeAmd" "microcodeIntel" | ||||
|         "steam" "steam-original" "steam-runtime" | ||||
|         "discord" | ||||
|       ]; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user