feat: add support for flatpak in NixOS configuration
Added the necessary configurations and dependencies to enable Flatpak in the Fuchsia module. This includes enabling the xdg portal for default settings and adding the flatpak service.
This commit is contained in:
		
							parent
							
								
									55dcdcf616
								
							
						
					
					
						commit
						fe95e44a07
					
				
					 3 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -10,6 +10,7 @@
 | 
			
		|||
      "/var/log"
 | 
			
		||||
      "/var/lib/bluetooth"
 | 
			
		||||
      "/var/lib/docker"
 | 
			
		||||
      "/var/lib/flatpak"
 | 
			
		||||
      "/var/lib/nixos"
 | 
			
		||||
      "/var/lib/systemd/coredump"
 | 
			
		||||
      "/etc/NetworkManager/system-connections"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,6 +12,7 @@
 | 
			
		|||
 | 
			
		||||
    # Services
 | 
			
		||||
    ./services/amdgpu-clocks
 | 
			
		||||
    ./services/flatpak
 | 
			
		||||
    ./services/libinput
 | 
			
		||||
    ./services/ollama
 | 
			
		||||
    ./services/printers
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										10
									
								
								nixos/fuchsia/services/flatpak/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								nixos/fuchsia/services/flatpak/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
{pkgs, ...}: {
 | 
			
		||||
  # Required to install flatpak
 | 
			
		||||
  xdg.portal = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    config.common.default = ["gtk"];
 | 
			
		||||
    extraPortals = [pkgs.xdg-desktop-portal-wlr];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  services.flatpak.enable = true;
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue