mirror of
				https://github.com/Jokiller230/puzzlevision.git
				synced 2025-10-31 13:50:04 +00:00 
			
		
		
		
	fix(modules): use activationScript to copy homepage config
This commit is contained in:
		
							parent
							
								
									ea850dfe76
								
							
						
					
					
						commit
						f4544d402c
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -13,12 +13,16 @@ in { | |||
| 
 | ||||
|   config = mkIf cfg.enable { | ||||
|     systemd.tmpfiles.rules = [ | ||||
|       "d /var/lib/containers/homepage 0700 root root -" | ||||
|       "d /var/lib/containers/homepage/config 0700 root root -" | ||||
|       "d /var/lib/containers/homepage/images 0700 root root -" | ||||
| 
 | ||||
|       "d /var/lib/containers/homepage 0700 root root - - - exec cp -r ${homepageConfigDirectory}/* /var/lib/containers/homepage" | ||||
|     ]; | ||||
| 
 | ||||
|     system.activationScripts.homepage = '' | ||||
|       # Copy files from homepageConfigDirectory to the target directory | ||||
|       cp -r ${homepageConfigDirectory}/* /var/lib/containers/homepage/ | ||||
|     ''; | ||||
| 
 | ||||
|     virtualisation.oci-containers.containers.homepage = { | ||||
|       image = "ghcr.io/gethomepage/homepage:latest"; | ||||
|       autoStart = true; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue