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:
♥ Minnie ♥ 2025-02-23 18:26:58 +08:00
parent 55dcdcf616
commit fe95e44a07
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
3 changed files with 12 additions and 0 deletions

View file

@ -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"

View file

@ -12,6 +12,7 @@
# Services
./services/amdgpu-clocks
./services/flatpak
./services/libinput
./services/ollama
./services/printers

View 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;
}