forked from jan-leila/nix-config
		
	created home manager nixos adapter modules
This commit is contained in:
		
							parent
							
								
									a755b9ff48
								
							
						
					
					
						commit
						90f0c114b3
					
				
					 9 changed files with 34 additions and 8 deletions
				
			
		|  | @ -5,5 +5,6 @@ | |||
|     ./users.nix | ||||
|     ./desktop.nix | ||||
|     ./nix-development.nix | ||||
|     ./home-manager | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
							
								
								
									
										6
									
								
								host-modules/home-manager/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								host-modules/home-manager/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | |||
| # modules in this folder are to adapt home manager modules defined in `home-modules` to any nix module configs that they need to set | ||||
| {...}: { | ||||
|   imports = [ | ||||
|     ./flipperzero.nix | ||||
|   ]; | ||||
| } | ||||
							
								
								
									
										9
									
								
								host-modules/home-manager/flipperzero.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								host-modules/home-manager/flipperzero.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | |||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   ... | ||||
| }: let | ||||
|   home-users = lib.attrsets.mapAttrsToList (_: user: user) config.home-manager.users; | ||||
| in { | ||||
|   hardware.flipperzero.enable = lib.lists.any (home-user: home-user.hardware.flipperzero.enable) home-users; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue