{ inputs, lib, ... }: { den.aspects.flatpak = { nixos = { ... }: { imports = [ inputs.nix-flatpak.nixosModules.nix-flatpak ]; services.flatpak = { enable = true; remotes = lib.mkOptionDefault [{ name = "flathub-beta"; location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo"; }]; update.auto.enable = true; uninstallUnmanaged = true; overrides = { global = { Context.sockets = [ "wayland" "!x11" "!fallback-x11" ]; }; }; }; }; }; }