forked from jan-leila/nix-config
		
	made common configuration place for gnome extensions
This commit is contained in:
		
							parent
							
								
									4ded22c2f5
								
							
						
					
					
						commit
						4825c5ec5e
					
				
					 4 changed files with 32 additions and 16 deletions
				
			
		
							
								
								
									
										25
									
								
								modules/home-manager-modules/gnome.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								modules/home-manager-modules/gnome.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | |||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   ... | ||||
| }: { | ||||
|   options.gnome = { | ||||
|     extensions = lib.mkOption { | ||||
|       type = lib.types.listOf lib.types.package; | ||||
|       default = []; | ||||
|       description = "The set of extensions to install and enable in the user environment."; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   config = { | ||||
|     home.packages = config.gnome.extensions; | ||||
|     dconf = { | ||||
|       settings = { | ||||
|         "org/gnome/shell" = { | ||||
|           disable-user-extensions = false; # enables user extensions | ||||
|           enabled-extensions = builtins.map (extension: extension.extensionUuid) config.gnome.extensions; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue