{ pkgs, lib, ...}: { services.flatpak = { enable = true; remotes = [ { name = "flathub"; location = "https://flathub.org/repo/flathub.flatpakrepo"; } ]; packages = [ "app.grayjay.Grayjay" "net.lutris.Lutris" "org.nickvision.money" ]; update = { auto = { enable = true; onCalendar = "weekly"; # Default value }; onActivation = true; }; overrides = { global = { # Enable for both wayland and x11 Context.sockets = [ "wayland" "x11" "!fallback-x11" ]; Environment = { # Fix un-themed cursor in some Wayland apps XCURSOR_PATH = "/run/host/user-share/icons:/run/host/share/icons"; }; }; }; }; }