home: add a way to differentiate bw laptop and desktop
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
		@@ -30,7 +30,7 @@ in
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
      natto-laptop = inputs.home-manager.lib.homeManagerConfiguration {
 | 
					      natto-laptop = inputs.home-manager.lib.homeManagerConfiguration {
 | 
				
			||||||
        modules = nattoModules ++ [
 | 
					        modules = nattoModules ++ [
 | 
				
			||||||
          { laptop = true; }
 | 
					          { natto.laptop = true; }
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
        pkgs = mkPkgs "x86_64-linux";
 | 
					        pkgs = mkPkgs "x86_64-linux";
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										9
									
								
								home/modules/laptop.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								home/modules/laptop.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					{ lib, ... }:
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  options.natto.laptop = lib.mkOption {
 | 
				
			||||||
 | 
					    type = lib.types.bool;
 | 
				
			||||||
 | 
					    default = false;
 | 
				
			||||||
 | 
					    example = true;
 | 
				
			||||||
 | 
					    description = "Whether this device is a laptop or not";
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user