mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	Create asus-zephyrus-ga402x-amdgpu and asus-zephyrus-ga402x-nvidia entries
- Previous attr-set style providing "amdgpu" and "nvidia" is broken by PR #1046 - Add deprecation assertion for asus-zephyrus-ga402x
This commit is contained in:
		@@ -1,15 +1,10 @@
 | 
			
		||||
## When using from a Flake, you can access these via imports of the attr key, e.g:
 | 
			
		||||
#
 | 
			
		||||
# imports = [
 | 
			
		||||
#   nixos-hardware.nixosModules.asus-zephyrus-ga402x.amdgpu
 | 
			
		||||
# ];
 | 
			
		||||
#
 | 
			
		||||
## or:
 | 
			
		||||
# imports = [
 | 
			
		||||
#   nixos-hardware.nixosModules.asus-zephyrus-ga402x.nvidia
 | 
			
		||||
# ];
 | 
			
		||||
{ ... }:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  amdgpu = import ./amdgpu;
 | 
			
		||||
  nvidia = import ./nvidia;
 | 
			
		||||
  assertions = [
 | 
			
		||||
    {
 | 
			
		||||
      assertion = false;
 | 
			
		||||
      message = "Importing asus/zephyrus/ga402x/ (default.nix) directly is deprecated! #TODO: More details";
 | 
			
		||||
    }
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -34,6 +34,8 @@
 | 
			
		||||
      asus-zephyrus-ga401 = import ./asus/zephyrus/ga401;
 | 
			
		||||
      asus-zephyrus-ga402 = import ./asus/zephyrus/ga402;
 | 
			
		||||
      asus-zephyrus-ga402x = import ./asus/zephyrus/ga402x;
 | 
			
		||||
      asus-zephyrus-ga402x-amdgpu = import ./asus/zephyrus/ga402x/amdgpu;
 | 
			
		||||
      asus-zephyrus-ga402x-nvidia = import ./asus/zephyrus/ga402x/nvidia;
 | 
			
		||||
      asus-zephyrus-ga502 = import ./asus/zephyrus/ga502;
 | 
			
		||||
      asus-zephyrus-ga503 = import ./asus/zephyrus/ga503;
 | 
			
		||||
      asus-zephyrus-gu603h = import ./asus/zephyrus/gu603h;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user